yiisoft/yii2 — pull request #2850 by Koudy (2014-03-22 09:59:48+00:00)
Title: Fixed getting the count for queries with the union

Fixed sql error 'The used SELECT statements have a different number of columns' when using
$queryTwo->union($queryOne);
$count = $queryTwo->count();