Manager/BaseManager.php
protected function getResultFromQueryBuilder(\Doctrine\ORM\QueryBuilder $queryBuilder)
    {

        $query = $queryBuilder->getQuery();

        $result = $query->getResult();

        return $result;
    }
protected function getResultFromQueryBuilder(\Doctrine\ORM\QueryBuilder $queryBuilder)
    {

        $query = $queryBuilder->getQuery();

        $result = $query->getResult();

        return $result;
    }
protected function getResultFromQueryBuilder ( \ Doctrine \ ORM \ QueryBuilder $ queryBuilder ) { $ query = $ queryBuilder -> getQuery ( ) ; $ result = $ query -> getResult ( ) ; return $ result ; }
Get result from execution of queryBuilder

@param QueryBuilder $queryBuilder

@return ArrayCollection
Get result from execution of queryBuilder