A
A
Anton972015-10-12 11:28:11
Yii
Anton97, 2015-10-12 11:28:11

Deal with yii2 dataprovider and related tables?

There are 4 tables

  1. Product
  2. Prices
  3. Countries
  4. Warehouses

Products -> one to many -> Prices
Products -> one to many -> warehouse
Warehouse -> many to one -> countries
Rendering a page where Products with prices are displayed.
You need to add a filter by country. Those. by product, find warehouses in which there is a product in the selected country.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mishko_kun, 2015-10-12
@Mishko_kun

www.yiiframework.com/wiki/653/displaying-sorting-a... - everything you need is here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question