Answer the question
In order to leave comments, you need to log in
How to disable afterFind?
Hello everyone, there is a problem with query optimization, I made a custom variable in the afterFind method in the Profile model
public function afterFind()
{
$this->projectGroup = $this->projectGroups;
return;
}
Answer the question
In order to leave comments, you need to log in
Remove assignment in afterFind.
Hang the script on the afterFind event in the right place, and implement the assignment in it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question