there is a code in widget like follow:
'query' => Tree::find()->addOrderBy('root, lft'),
but I want to give an array instead of query. like bellow:
'query' =>dataArray;
How can I do it?
It has to be a yii\db\query object and is database query based dependent on yii2-nested-sets extension. The extension requires a database table to be setup as mentioned in docs.
there is a code in widget like follow: 'query' => Tree::find()->addOrderBy('root, lft'), but I want to give an array instead of query. like bellow: 'query' =>dataArray; How can I do it?