Example #1
0
 /**
  * {@inheritdoc}
  */
 public function getParameters(QueryCompiler $compiler = null)
 {
     $parameters = parent::getParameters($compiler = !empty($compiler) ? $compiler : $this->compiler->reset());
     //Unions always located at the end of query.
     foreach ($this->unions as $union) {
         if ($union[0] instanceof QueryBuilder) {
             $parameters = array_merge($parameters, $union[0]->getParameters($compiler));
         }
     }
     return $parameters;
 }