You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When you've an entity extension that uses inheritance, the remove method from the repositoryFactory is not working whenever you update the entity. The PATCH request is detecting the changes (deletion of the entity extension record), however it seems that those update is not being processed at all.
Additional context
Example: I've created a "productDocuments" entity extensions for the "product" entity. When I use the following line of code on an inherited product, the "productDocument" is not removed when the product is updated.
The PATCH request is identifying the changes (removal of a "productDocuments" item related to the product). But when the product entity is fetched again, the "productDocuments" item is still existing.
As a work-around I've used the following approach. But this requires additional logic on the product create/edit view (& a page refresh upon every action related to deleting "productDocuments" in my specific case) in order to keep everything behaving as expected.
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know.
Thank you again for your valuable feedback.
Description
When you've an entity extension that uses inheritance, the remove method from the repositoryFactory is not working whenever you update the entity. The PATCH request is detecting the changes (deletion of the entity extension record), however it seems that those update is not being processed at all.
Additional context
Example: I've created a "productDocuments" entity extensions for the "product" entity. When I use the following line of code on an inherited product, the "productDocument" is not removed when the product is updated.
The PATCH request is identifying the changes (removal of a "productDocuments" item related to the product). But when the product entity is fetched again, the "productDocuments" item is still existing.
As a work-around I've used the following approach. But this requires additional logic on the product create/edit view (& a page refresh upon every action related to deleting "productDocuments" in my specific case) in order to keep everything behaving as expected.
The text was updated successfully, but these errors were encountered: