I have a base model controller called Modelo
. It has a protected static method search
(it's just a refinated find()
). I was creating to function to get his children caller class when I thought: "If I use another function that is also protected static, and from it call the original function, which model is used to do the find?".
And I discovered that it uses the base model controller. It is bad in terms of searching, or just doesn't mind which $model::find()
is used? (for example, when searching users with Modelo::find()