Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone entity (order) with extension (many to one) fails as the foreign key is not cloned #2370

Open
AndreasA opened this issue Mar 2, 2022 · 0 comments
Labels

Comments

@AndreasA
Copy link
Contributor

AndreasA commented Mar 2, 2022

PHP Version

8.1

Shopware Version

6.3.5.2, probably also newer.

Expected behaviour

When cloning an order e.g. with an additional state field that information is lost, as the foreign key is not cloned as extensions do not just include the ID, so the ID is lost.

see also https://issues.shopware.com/issues/NEXT-12524

I am mostly interested in an update regarding this.

Actual behaviour

Data is lost, e.g. when a state is added to order and it is cloned (edited).

How to reproduce

Add a state machine field extension to the order, assign a value, edit/clone it and the data is lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant