How to convert Doctrine 2 models to array

For programming and general questions on Zend Framework
Post Reply
edua1044
Posts: 1
Joined: Fri Aug 11, 2017 8:31 pm

How to convert Doctrine 2 models to array

Post by edua1044 » Fri Aug 11, 2017 8:34 pm

$models =$om->getRepository('Entity')->findAll();
How convert this array objects to array of arrays?
I find Hydrator from DoctrineModule, but i can't use it.

Post Reply