Answer the question
In order to leave comments, you need to log in
How to display records in yii grid, only those that have related data?
Good afternoon,
There is such a problem, when adding a certain application, several people can hang themselves on it, or maybe not hang themselves. I want the controller's actionAdmin grid to display only records that have links to persons.
Structure :
Bids
-------
id
-------
Livings
--------
person_id
bid_id
_ _ _ _ _ _ _ _
Answer the question
In order to leave comments, you need to log in
You can make a separate model for this.
You can specify the rules when forming the activedataprovider, through join, for example
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question