Return correct array from DoctrineDriver