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

Added named scope, which gets ajar (partialy opened tree) for node #26

Closed anktx closed 11 years ago

creocoder commented 11 years ago

This extension contains only typical NS tree scopes. Also scope should not do any queries by self. I can explain more why. For example:

$ancestors=$owner->ancestors()->findAll(); 

Someone may be want to use scope before getting ancestors like:

$ancestors=$owner->ancestors()->published()->findAll();

And this ajar() method will be unusable. We try to keep only always usable methods.