Doctrine orm: bypass lazy loading and prefetch related records in a getter?

I'm not sure I understood but you may find answer in doctrine doc : $users->loadRelated('Phonenumbers').

This will not work for described scenario. First collection of users must be loaded (first sql query), after that loadRelated will load Phonenumbers for all loaded users (second sql query). Good to know this, but this is not the answer... – zidane Aug 21 at 20:37.

Some kind of automatic "prefetching" of related records. (It simply executes the query with the joins even if you get only the 'root' record with the array syntax).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions