E
E
EVOSandru62015-11-03 06:23:45
Yii
EVOSandru6, 2015-11-03 06:23:45

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

1 answer(s)
M
Maxim Timofeev, 2015-11-04
@EVOSandru6

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 question

Ask a Question

731 491 924 answers to any question