This page explains it: http://docs.doctrine-project.org/en/latest/tutorials/extra-lazy-associations.html
It may be actually updated, since `dev-master` (the future 2.5) includes a lot of improvements on that front. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 25 June 2014 12:38, Nima Sadjadi <[email protected]> wrote: > > Sorry for posting to this thread. Marco please give me the link to doc > page where EXTRA_LAZY is explained. I did not find it. > > > > On Wed, Jun 25, 2014 at 2:24 PM, <[email protected]> wrote: > >> Mmm, seems like I didn't consider this option :) I thought it only worked >> for count() functions and other simple stuff like this but thanks a lot it >> works well !!! >> >> Le mercredi 25 juin 2014 11:24:23 UTC+2, Marco Pivetta a écrit : >>> >>> Are you actually using EXTRA_LAZY for this collection? >>> On 25 Jun 2014 10:11, <[email protected]> wrote: >>> >>>> Hi everyone, >>>> >>>> I'd like to remove an element from a big persistant collection (~10K >>>> users). When I call my remove() method, Doctrine first initialize the >>>> collection and my application crashes (can't load 10K user objects). >>>> >>>> Is there any trick with the UnitOfWork or something else to remove an >>>> element from a collection without initializing the whole collection ? >>>> >>>> I just dont want to inverse the side of my ManyMany relation (and >>>> delete from the other side), and I'd like to avoid working on the join >>>> table. >>>> >>>> Thanks ++ >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "doctrine-user" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To post to this group, send email to [email protected]. >>>> >>>> Visit this group at http://groups.google.com/group/doctrine-user. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "doctrine-user" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/doctrine-user. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
