protected function createQueryBuilder($alias = 'a')
    {
        $repository = $this->get('orm.em')->getRepository($this->getEntityClass());

        $queryBuilder = $repository->createQueryBuilder($alias);

        return $queryBuilder;
    }
protected function createQueryBuilder($alias = 'a')
    {
        $repository = $this->get('orm.em')->getRepository($this->getEntityClass());

        $queryBuilder = $repository->createQueryBuilder($alias);

        return $queryBuilder;
    }
protected function createQueryBuilder ( $ alias = 'a' ) { $ repository = $ this -> get ( 'orm.em' ) -> getRepository ( $ this -> getEntityClass ( ) ) ; $ queryBuilder = $ repository -> createQueryBuilder ( $ alias ) ; return $ queryBuilder ; }
Create query builder from the current repository

@param string $alias Root alias to use with the query
Create query builder from the current repository