I will try to explain the essence of the issue. I have 3 tables: items , rows and item_prop .
The items table is a list of objects (id key), rows is a list of properties that an object can have (id key), item_prop is a table that links items and rows and stores the value. That is, it has the following fields: item_id, row_id, value. Here I think it is clear.
Actually the question itself: how correctly in the model to describe these links, what would GridView work correctly, namely, search and sorting. I only know when 2 tables are connected (via hasOne or hasMany), but I don’t know how.
Please tell me or poke an example. thank