From: "J. Philip" <jphi...@noatak.com>
Date: Fri, 3 Jul 2009 15:27:19 -0800
Local: Sat 4 July 2009 00:27
Subject: RE: [doctrine-user] adding a method to the nested set
You can derive a class MyNestedSet from nested set and add your own
methods in it. Add a behavior MyNestedSetBehavior derived from
After, you replace actAs : [NestedSet] with actAs :
I have not tried it but it should work.
Note that if you just want to add an orderBy clause, you should be able
-----Original Message-----
From: doctrine-user@googlegroups.com [mailto:doctrine-user@googlegroups.com] On Behalf Of crash3k
Hi,
I've just started lerning Doctrine and Symfony
So... here's the method a want to add:
public function getDescendantsSorted($depth = null, $includeNode =
if ($includeNode) {
if ($depth !== null) {
if ($orderBy != "")
$q = $this->_tree->returnQueryWithRootId($q, $this->getRootValue());
$result = $q->execute();
if (count($result) <= 0) {
return $result;
So is there a way of loading this method into the
Thanks in advance!
Greetings,
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||