Closed witzawitz closed 9 years ago
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', ] ]; }
@witzawitz Good catch! Thanks a lot! ;)
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
there should be this