/** * @inheritdoc */ public function behaviors() { return [['class' => NestedSetsBehavior::className(), 'treeAttribute' => 'tree']]; }
/** * @inheritdoc */ public function behaviors() { return [['class' => AdjacencyListBehavior::className(), 'sortable' => false], ['class' => NestedSetsBehavior::className(), 'treeAttribute' => 'tree']]; }
/** * @inheritdoc */ public function behaviors() { return [['class' => NestedSetsBehavior::className()]]; }
/** * @inheritdoc */ public function behaviors() { return [TimestampBehavior::className(), ['class' => AdjacencyListBehavior::className(), 'parentAttribute' => 'parent_id'], ['class' => NestedSetsBehavior::className(), 'treeAttribute' => null, 'leftAttribute' => 'lft', 'rightAttribute' => 'rgt', 'depthAttribute' => 'level']]; }