$query1 = Model1::fond()->select('id')->andWhere('...');
$query2 = Model2::find()->select('id')->andWhere('...');
$query1->union($query2);
$dataProvider = new ActiveDataProvider([
'query' => $query1,
'pagination' => [
'pageSize' => 10
],
]);
->limin(10)
$query1 = Model1::fond()->select('id')->andWhere('...')->limin(10);
$query2 = Model2::find()->select('id')->andWhere('...')->limin(10);
$query1->union($query2);
$dataProvider = new ActiveDataProvider([
'query' => $query1,
'pagination' => [
'pageSize' => 10
],
]);
->groupBy()
и ->district()