5
$posts = $em->find('Application\BlogBundle\Entity\Post',1);
print_r ($posts);
왜 내가 가져 왔습니까? 대신 같은 간단한 배열의Symfony2, Doctrine 2 : getResult 객체
Barii\BlogBundle\Entity\Post Object ([id:Barii\BlogBundle\Entity\Post:private] => 1 [title:Application\BlogBundle\Entity\Post:private] => something [body:Application\BlogBundle\Entity\Post:private] => content )
:
array ([id] => 1,
[title] => "something",
[body] => "content" )
나는 당신이 여기에 몇 가지 옵션이 있습니다 심포니 2.
Sf2/Doctrine이이 매우 일반적인 사용 사례를 예상하지 않는다는 데 실망합니다. – Acyra