[Bug]: updating advanced many-to-many relationship fails when changing metadata
dkarlovi opened this issue · 1 comments
dkarlovi commented
Expected behavior
Normal update.
Actual behavior
Key \"`auto_id`\" passed for upsert not found in data
Steps to reproduce
- Create a
Product
class withBOM
advanced many to many relationship, columnquantity
(number) - create two new object, say ID 111 and 123
- run the GraphQL query
mutation {
updateProduct(
id: 123
input: {
BOM: [
{
type: "object"
id: 111
metadata: [{ name: "quantity", value: "1" }]
}
]
}
) {
message
success
}
}
- run the query again, but change the quantity value to 2
- now get the error
Key \"`auto_id`\" passed for upsert not found in data
This seems to be caused by the upsert not sending the correct keys when doing this update. The upsert here shouldn't be done against auto_id
but against the metadata_un
key.
dkarlovi commented
Moved to pimcore/pimcore#16265