yiiext / nested-set-behavior

AR models behavior that allows to work with nested sets tree.
http://www.yiiframework.com/extension/nestedsetbehavior/
BSD 3-Clause "New" or "Revised" License
157 stars 64 forks source link

ошибка в примере #5

Closed mindochin closed 12 years ago

mindochin commented 12 years ago

в разделе ### Идентификация узлов дерева $root=Category::model()->findByPk(1); CVarDumper::dump($root->isRoot()); //true; CVarDumper::dump($root->isLeaf()); //false; $node=Category::model()->findByPk(9); CVarDumper::dump($node->isDescendantOf($root)); //true; CVarDumper::dump($node->isRoot()); //false; CVarDumper::dump($root->isLeaf()); //true; - по логике должно быть $node

creocoder commented 12 years ago

Fixed