public function createValuedQueryBuilder($entityAlias)
    {
        return $this->createQueryBuilder($entityAlias)
            ->select($entityAlias, 'vs', 'v', 'a', 'p', 's')
            ->leftJoin($entityAlias.'.valueSet', 'vs')
            ->leftJoin('vs.schema', 's')
            ->leftJoin('vs.values', 'v')
            ->leftJoin('s.attributes', 'a')
            ->leftJoin('v.options', 'p');
    }
public function createValuedQueryBuilder($entityAlias)
    {
        return $this->createQueryBuilder($entityAlias)
            ->select($entityAlias, 'vs', 'v', 'a', 'p', 's')
            ->leftJoin($entityAlias.'.valueSet', 'vs')
            ->leftJoin('vs.schema', 's')
            ->leftJoin('vs.values', 'v')
            ->leftJoin('s.attributes', 'a')
            ->leftJoin('v.options', 'p');
    }
public function createValuedQueryBuilder ( $ entityAlias ) { return $ this -> createQueryBuilder ( $ entityAlias ) -> select ( $ entityAlias , 'vs' , 'v' , 'a' , 'p' , 's' ) -> leftJoin ( $ entityAlias . '.valueSet' , 'vs' ) -> leftJoin ( 'vs.schema' , 's' ) -> leftJoin ( 'vs.values' , 'v' ) -> leftJoin ( 's.attributes' , 'a' ) -> leftJoin ( 'v.options' , 'p' ) ; }
Used by Elastica to transform results to model.

@param string $entityAlias

@return \Doctrine\ORM\QueryBuilder
Used by Elastica to transform results to model .