Stefan
Explore posts from serverserror: Group::isContained does not exist
On the Resource classes where I use Form Group Components, on create and edit routes i get Method Filament\Forms\Components\Group::isContained does not exist.
If I comment the Forms\Components\Group::make()->schema([...]) and I use Forms\Components\Tabs\Tab::make()->schema([...]) I get Tab::isContained does not exist.
Thanks!
2 replies
attach properties to products
I want to assign properties to the products:
Product Model:
Product Table
products
fields:
I have registered PropertiesRelationManager::class on the ProductRequest
Property Model:
Property Table properties
fields:
PropertyValue Model:
Table property_values
with the followings fields:
ProductProperty Model:
ProductProperty Table product_properties
fields:
PropertiesRelationManager:
When I save, I get: Array to string conversion
I guess that this happens because I declared multiple() on Select::make('property_value_id') and what I select is passed as array and my field property_value_id
accepts an integer.
For each selected value in this Select::make('property_value_id') I want to add a record in the product_properties table not a single record with all the values as if the property_value_id would be of type json.
Thanks for your time!2 replies
update relative table
I have a product resource class where in the main form I have only fields that belongs to the products table and all updates go fine.
Now, if I add two more fields to the main form, like gross_price, net_price. I want to store them in a table named product_prices.
When I try to update the price fields that are the product_prices table, I get an error
It tries to update the products table and not the product_prices table.
What to do in order to be able to also update the relative tables when I update any of the fields in the form?
Thanks in advance!
7 replies