We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fd7cbc commit cb8635aCopy full SHA for cb8635a
README.md
@@ -58,11 +58,13 @@ class Menu extends \yii\db\ActiveRecord
58
{
59
public function behaviors() {
60
return [
61
- 'class' => NestedSetsBehavior::className(),
62
- // 'treeAttribute' => 'tree',
63
- // 'leftAttribute' => 'lft',
64
- // 'rightAttribute' => 'rgt',
65
- // 'depthAttribute' => 'depth',
+ 'tree' => [
+ 'class' => NestedSetsBehavior::className(),
+ // 'treeAttribute' => 'tree',
+ // 'leftAttribute' => 'lft',
+ // 'rightAttribute' => 'rgt',
66
+ // 'depthAttribute' => 'depth',
67
+ ],
68
];
69
}
70
0 commit comments