Return array, not object from Doctrine query - Symfony2

前端 未结 3 688
伪装坚强ぢ
伪装坚强ぢ 2021-02-12 20:02

I\'m using this:

$this->getDoctrine()->getRepository(\'MyBundle:MyEntity\')->findAll(array(), Query::HYDRATE_ARRAY);

I thought that sh

3条回答
提交回复
热议问题