Answer the question
In order to leave comments, you need to log in
Yii2. Memory flows in a loop. Where are the weird links from?
The script leaked heavily from memory. I began to look in the debugger and was shocked.
From where in one ActiveRecord in _instances there is a link to some kind of left model that is not tied in any way. I blame her.
What the heck is that???
Answer the question
In order to leave comments, you need to log in
1) look at the request for eager subloading.
2) look at the model for afterFind() methods.
3) look at the loop, do you get access to objects by getters, and loading occurs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question