-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Description
Hi. Thank you for the extension. Just want to say you have an error in the documentation. When configuring behavior with parameters we should use array and place it in array of behaviors. So instead of
public function behaviors() {
return [
'class' => NestedSetsBehavior::className(),
// 'treeAttribute' => 'tree',
// 'leftAttribute' => 'lft',
// 'rightAttribute' => 'rgt',
// 'depthAttribute' => 'depth',
];
}
there should be this
public function behaviors() {
return [
[
'class' => NestedSetsBehavior::className(),
// 'treeAttribute' => 'tree',
// 'leftAttribute' => 'lft',
// 'rightAttribute' => 'rgt',
// 'depthAttribute' => 'depth',
]
];
}
Metadata
Metadata
Assignees
Labels
No labels