kkreft
4/27/2016 - 7:00 AM

http://shout.setfive.com/2015/01/31/including-foreign-keys-in-doctrine2-array-results/

return $this->createQueryBuilder('p')
              ->getQuery()
              ->setHint(\Doctrine\ORM\Query::HINT_INCLUDE_META_COLUMNS, true)
              ->getArrayResult();