NestedSetsBehavior::className(), 'treeAttribute' => 'tree', ], ]; } /** * @inheritdoc */ public function rules() { return [ ['name', 'required'], ]; } /** * @inheritdoc */ public function transactions() { return [ self::SCENARIO_DEFAULT => self::OP_ALL, ]; } /** * @inheritdoc */ public static function find() { return new MultipleRootsTreeQuery(get_called_class()); } }