public function getEntities(array $args = [])
    {
        $alias = $this->getTableAlias();

        $q = $this->_em
            ->createQueryBuilder()
            ->select($alias)
            ->from('MauticContactClientBundle:ContactClient', $alias, $alias.'.id');

        if (empty($args['iterator_mode'])) {
            $q->leftJoin($alias.'.category', 'c');
        }

        $args['qb'] = $q;

        return parent::getEntities($args);
    }
public function getEntities(array $args = [])
    {
        $alias = $this->getTableAlias();

        $q = $this->_em
            ->createQueryBuilder()
            ->select($alias)
            ->from('MauticContactClientBundle:ContactClient', $alias, $alias.'.id');

        if (empty($args['iterator_mode'])) {
            $q->leftJoin($alias.'.category', 'c');
        }

        $args['qb'] = $q;

        return parent::getEntities($args);
    }
public function getEntities ( array $ args = [ ] ) { $ alias = $ this -> getTableAlias ( ) ; $ q = $ this -> _em -> createQueryBuilder ( ) -> select ( $ alias ) -> from ( 'MauticContactClientBundle:ContactClient' , $ alias , $ alias . '.id' ) ; if ( empty ( $ args [ 'iterator_mode' ] ) ) { $ q -> leftJoin ( $ alias . '.category' , 'c' ) ; } $ args [ 'qb' ] = $ q ; return parent :: getEntities ( $ args ) ; }
Get a list of entities.

@param array $args

@return \Doctrine\ORM\Tools\Pagination\Paginator
Get a list of entities .