D
D
di2020-10-01 16:51:01
Yii
di, 2020-10-01 16:51:01

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.
5f75de45633b1718108780.png

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 answer(s)
D
Dmitry Bay, 2020-10-01
@kawabanga

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 question

Ask a Question

731 491 924 answers to any question