Answer the question
In order to leave comments, you need to log in
How to force Doctrine 2 not to load the entire collection when adding?
There are two entities Account and Operation.
The account contains the history of transactions. (one-to-many relationship)
The relationship is declared as EXTRA_LAZY.
Why is it that when adding a new operation to the collection ($this->operations->add($operation) , the add method of PersistentCollection) is it fully loaded (up to 100000 entries can be in one account)?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question