Ejemplo n.º 1
0
 /**
  * Create a new QueryBuilder instance that is prepopulated for this entity name
  *
  * @param string $alias Table alias OPTIONAL
  * @param string $code  Language code OPTIONAL
  *
  * @return \Doctrine\ORM\QueryBuilder
  */
 public function createQueryBuilder($alias = null, $code = null)
 {
     if (!isset($code)) {
         $code = \XLite\Base\Superclass::getDefaultLanguage();
     }
     return parent::createQueryBuilder($alias, $code);
 }
Ejemplo n.º 2
0
 /**
  * Define query builder for getAllOptions()
  *
  * @return \Doctrine\ORM\QueryBuilder
  */
 protected function defineAllOptionsQuery()
 {
     return $this->createQueryBuilder(null, \XLite\Base\Superclass::getDefaultLanguage());
 }