Skip to content

Commit cb8635a

Browse files
committed
Fixes #56: Updated README.md
1 parent 8fd7cbc commit cb8635a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ class Menu extends \yii\db\ActiveRecord
5858
{
5959
public function behaviors() {
6060
return [
61-
'class' => NestedSetsBehavior::className(),
62-
// 'treeAttribute' => 'tree',
63-
// 'leftAttribute' => 'lft',
64-
// 'rightAttribute' => 'rgt',
65-
// 'depthAttribute' => 'depth',
61+
'tree' => [
62+
'class' => NestedSetsBehavior::className(),
63+
// 'treeAttribute' => 'tree',
64+
// 'leftAttribute' => 'lft',
65+
// 'rightAttribute' => 'rgt',
66+
// 'depthAttribute' => 'depth',
67+
],
6668
];
6769
}
6870

0 commit comments

Comments
 (0)