Fixes #4606: doc fix. [skip ci]

This commit is contained in:
Qiang Xue
2014-08-05 13:01:06 -04:00
parent cd2eeced76
commit 55e9afeac0

View File

@ -396,10 +396,10 @@ In Yii in order to build it you can first form two query objects and then use `u
```php
$query = new Query();
$query->select("id, 'post' as type, name")->from('post')->limit(10);
$query->select("id, category_id as type, name")->from('post')->limit(10);
$anotherQuery = new Query();
$anotherQuery->select('id, 'user' as type, name')->from('user')->limit(10);
$anotherQuery->select('id, type, name')->from('user')->limit(10);
$query->union($anotherQuery);
```