/** * @inheritdoc */ public function behaviors() { return [['class' => NestedSetsBehavior::className(), 'treeAttribute' => 'tree']]; }
/** * @inheritdoc */ public function behaviors() { return [NestedSetsBehavior::className()]; }