我想加入杂货店的两张桌子。 子表有2个或更多匹配值
- store_specs -
|id | label |value |store_id|
+---+---------+---------+--------+
|3 |Height |20 CM |2 |
|4 |Weight |50 Grams |2 |
- store_items -
|id |title |description |stock |category_id |images|
+----------+---------------+-------------------+---------------+---------------+------+
|2 |Tweezers... |Super high... |5 |1 | |
|3 |Soldering... |Lorem Ipsum... |12 |1 | |
|4 |aaa |bvbbb |2 |2 | |
它将显示如下 在杂货店Crud
|id |title |description |specs |
+----------+---------------+-------------------+----------------------------+
|2 |Tweezers... |Super high... |Height: 20cm, Weight:50Grams|
|3 |Soldering... |Lorem Ipsum... | |
|4 |aaa |bvbbb | |
伙计们,请帮助我,谢谢。
答案 0 :(得分:0)
当前版本不支持,但您可以使用自定义模型,请参阅下面的主题。