Answer the question
In order to leave comments, you need to log in
How to track the parent model by relationship in Yii1?
Good afternoon,
There are 3 models connected among themselves, User,Company,Object
In the code there is a call on a chain of the following kind Object->User->Company->name
name the virtual attribute, is established through the getName method.
How can I get to the Object model in the getName method of the Company model?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question