Browse Source

Merge branch 'master' of git://github.com/yiisoft/yii2

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
36daafe419
  1. 2
      docs/guide/query-builder.md

2
docs/guide/query-builder.md

@ -251,7 +251,7 @@ $query = new Query;
$query->select("id, 'post' as type, name")->from('tbl_post')->limit(10); $query->select("id, 'post' as type, name")->from('tbl_post')->limit(10);
$anotherQuery = new Query; $anotherQuery = new Query;
$query->select('id, 'user' as type, name')->from('tbl_user')->limit(10); $anotherQuery->select('id, 'user' as type, name')->from('tbl_user')->limit(10);
$query->union($anotherQuery); $query->union($anotherQuery);
``` ```

Loading…
Cancel
Save