yii2 mongodb ActiveRecord Сортировка
Primary tabs
По-идее так же как и в любой эктиврекорд:
$sort = 'ASC'; $reports = Report::find() ->where(['in', '_id', $this->report_ids]) ->orderBy("creation_data $sort") ->all();
- Log in to post comments
- 2030 reads