How to convert Doctrine 2 models to array

For programming and general questions on Zend Framework

How to convert Doctrine 2 models to array

Postby edua1044 on 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.
edua1044
 
Posts: 1
Joined: Fri Aug 11, 2017 8:31 pm

Return to Zend Framework

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron