Closed wojciech-klonowski closed 9 years ago
I get solution of this by other way $roots = Category::::findAll(['lft' => '1']); It work good for get roots for me.
In my model
/* public static function createQuery() { return new CategoryQuery(['modelClass' => get_called_class()]); }*/
public static function find()
{
return Yii::createObject(CategoryQuery::className(), [get_called_class()]);
}
New version of behavior is coming, documentation already fixed.
When trying to get all roots by $roots = Category::find()->roots()->all(); I get this exception. How to fix it or get all roots in any other way.