-
Notifications
You must be signed in to change notification settings - Fork 156
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
Symfony2 embedded forms - updating collection #280
Comments
Plz join your schema.xml 2014-07-08 12:31 GMT+02:00 JK [email protected]:
|
Here it goes:
|
May onUpdate="RESTRICT" be responsible for such a behavior? EDIT: seems like RESTRICT is there by default and shouldn't caused it. |
This issue happens only when part of composite key is changed. Updating of other columns causes no problem at all. |
In many-to-many relationship, changing a part of the primary key generates wrong SQL sequence.
When I do DELETE, and ADD NEW, everything works fine - DELETE and INSERT sql commands are issued.
When I do UPDATE of existing collection item, DELETE and UPDATE sql commands are issued, which obviously leads to lost reference.
Example (using dropdown I have changed attribute from 30 to 9):
Attribute 9 is missing before these queries are run, so I end up with missing reference. Is there any chance of this being fixed?
Any other solution besides DELETE and ADD NEW?
The text was updated successfully, but these errors were encountered: