/** * Executes the join query and populates the query results. * @param CJoinQuery $query the query to be executed. */ public function runQuery($query) { $command = $query->createCommand($this->_builder); foreach ($command->queryAll() as $row) { $this->populateRecord($query, $row); } }