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] <javascript:>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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.

Reply via email to