Closed dynasource closed 9 years ago
https://github.com/creocoder/yii2-nested-set-behavior#adding-child-nodes
Original: $root = Category::find(1); //returns ActiveQuery object, resulting into errors
Suggestion: $root = Category::findOne(1); //returns Active record, which can be used by NestedSet.php
Fixed inside new documentation which coming with new stable behavior version for Yii 2 release.
https://github.com/creocoder/yii2-nested-set-behavior#adding-child-nodes
Original: $root = Category::find(1); //returns ActiveQuery object, resulting into errors
Suggestion: $root = Category::findOne(1); //returns Active record, which can be used by NestedSet.php