function getQueryLoop(Doctrine\ORM\Query $query) { return new loop_array($query->getArrayResult(), 'filter_rawArray'); }