nirmalroka
(Nirmal Websanjal)
1
I have three tables property where id as primary key
feature where id as primary key
and propertyfeature where id as primary and ( property_id and feature_id) as foreign key.
I want to search property model by selecting some of filed of property table and some field from features table.
I really want to make advanced search for property. So is there any tutorial how to achieve this in Yii2.
Thank you.
Not sure about a tutorial. But you can use the IN condition of sql to fetch master records based on detail data.