Commit 55e9afea by Qiang Xue

Fixes #4606: doc fix. [skip ci]

parent cd2eeced
...@@ -396,10 +396,10 @@ In Yii in order to build it you can first form two query objects and then use `u ...@@ -396,10 +396,10 @@ In Yii in order to build it you can first form two query objects and then use `u
```php ```php
$query = new Query(); $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 = 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); $query->union($anotherQuery);
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment