-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Regression when persisting object ID and changing the locale #657
Comments
I suspect it is caused by this PR: #555 (which was merged in 1.2.0-RC4, the first version failing). So this has to be fixed in both 1.2.x and master. |
Btw, the problem probably is not in the fact that path is the Id, but that the Id is one of the types that is not translatable. Only the translatable fields seem to exists at the line of the error. |
ok, I know what the problem is. When the changeset if calculated the "isNew" flag is determined by the presence of the object ID in the The problem is caused when we call I am not sure how to fix this but I think it is invalid to call |
oh my. well, you can bindTranslation before persisting, so findTranslation must work as well. i guess we should fix this edge case, maybe in bindTranslation to create all the expected data. or in findTranslation to not create any originalData when the document is new, because it actually makes no sense. could the later be the right solution? |
Had another go at this, but failed. Maybe another day. |
A test has been added in the RoutingAutoBundle which seems to reveal a regression introduced in 83863d7.
Failure is as follows
Where
path
is the name of the property mapped as the@Id
./cc @lsmith77 @wouterj
The text was updated successfully, but these errors were encountered: