How to manage ManyToMany relation in TableBuilder and FormBuilder?
I have the following models
Product
I defined these functions in Product model:
Furthermore I tried this code in the ProductRelationsManager table columns function:
So it creates all the pricelist columns, but I have no clue what should I add to the TextColumn::make() parameter in order to reach the given price belonging to the actual pricelist.
Also have no clues how to define the form, what should I add to the TextInput::make() as parameter.
Product
- id
- name
- id
- name
- id
- product_id
- pricelist_id
- price
I defined these functions in Product model:
Furthermore I tried this code in the ProductRelationsManager table columns function:
So it creates all the pricelist columns, but I have no clue what should I add to the TextColumn::make() parameter in order to reach the given price belonging to the actual pricelist.
Also have no clues how to define the form, what should I add to the TextInput::make() as parameter.