vanilophp / framework

The truly Laravel E-commerce Framework
https://vanilo.io
MIT License
809 stars 102 forks source link

many props value for prop #125

Closed mfilin closed 2 years ago

mfilin commented 2 years ago

hi, i am dont understand why method $product->propertyValues()->sync(data) dont work with data [ 5 => 111, 222, 333 ]

and i see that in DB is only one record 111

:((((

mfilin commented 2 years ago

$properties = $request->propertyValues; $product->propertyValues()->sync($properties);

mfilin commented 2 years ago

its my mistake, sorry...

fulopattila122 commented 2 years ago

Only one property value per property can be assigned. Ie. a Shoe can be either size of 42 or 43, but not both.

In turn, multiple taxons can be assigned to an entity (product).