Replies: 1 comment 1 reply
-
Take a look at this as reference https://github.com/getcandy/candy-api/blob/master/src/Core/Products/Services/ProductVariantService.php |
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
-
Atm I have trouble updating a variant through a relation.
This example code above returns "True", but doesn't update anything.
What I researched so far for why it only return "True" is, that there isn't really a explanation except primary key in model is being overwritten
So can we test if adding
protected $primaryKey = "id"
to "ProductVariant" model fixes the issue?
Beta Was this translation helpful? Give feedback.
All reactions