yiisoft/yii2 — pull request #2183 by romeo7 (2014-01-27 11:28:32+00:00)
Title: Add individual SELECT statements in UNION

This pull request must be connected with this: #2175
```php
Foo::find()
->limit(15)
->unionFull(
Bar::find()
->limit(16),
true
)
->createCommand()
->getSql();
```
or

```php
(new Query())
->from(['foo'])
->limit(15)
->unionFull(
(new Query())
->from(['bar'])
->limit(16),
true
)
->createCommand()
->getSql();
```
**Output:**

```sql
(SELECT * FROM `foo` LIMIT 15) UNION ALL ( SELECT * FROM `bar` LIMIT 16 )
```