propelorm/Propel — Issue #249: Add 'getAllLeaves' for Nested behavior
Author: johnarevalo
Created: 2012-01-03 17:00:39+00:00
State: open

it would be useful generate something like this method in *Query Class:

public static function getAllLeaves() {
return self::create()->where('tree_right - tree_left = 1')->find();
}