Replies: 1 comment 1 reply
-
Короче данные я получаю такого плана
но в ячейке таблицы не выводится нормально select, даже самый простой из документации, в селекте всегда только первый элемент массива options или параметр ->empty('...'), если он указан, печаль... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Есть 4 таблицы products, properties, property_options и offers c такими отношениями,
products - belongsToMany - properties
properties - hasMany - property_options
offers - belongsToMany - property_Options
offers - belongsTo - products
Короче идея такая:
в OfferEditScreen получить все offer.product.properties в одну колонку таблицы и заполнить селекты property.propertyOptions в другой колонке таблицы, вроде того:
цвет - желтый
- синий
- красный
- белый
размер - 10
- 20
- 30
- 40
ну и так далее, properties может быть сколько угодно.
Пните в нужном направлении, а то уже лыжи не едут(
Beta Was this translation helpful? Give feedback.
All reactions