Hi. I won't give you the answer you are expecting, but an advice: Try  to
avoid lazy loading, always; you can do pretty much
with DQL.

2011/6/20 jletellier <letellier.jul...@googlemail.com>

> I updated to Symfony BETA5 and now lazy loading doesn't seem to work
> anymore.
>
> In the controller I did the following:
>
> $em = $this->getDoctrine()->getEntityManager();
> $task = $em->getRepository('BpErpBundle:BpTask')-
> >findOneById($taskId);
>
> And then I tried to get access of a foreign entity:
>
> $author = $task->getAuthor(); // should be lazy loading the author,
> but isn't working
>
> It shows no errors but the author isn't loaded.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to