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

Creating translating objects for non-persisted collection elements fails #61

Closed
szymach opened this issue Oct 22, 2016 · 2 comments
Closed

Comments

@szymach
Copy link
Contributor

szymach commented Oct 22, 2016

If you create an object belonging to a collection and do not persist it manually before flushing (you have cascade persist option set to true), the translation will not be created. This happens because the new object is scheduled for insertion after the relevant method of translatable listener is called.

I am not sure if this is something the bundle should take care of, but perhaps it is a good idea to look into it, since it is kind of troublesome to figure out why translations are not added.

@JarekW
Copy link
Contributor

JarekW commented Oct 24, 2016

preFlush is called before change-set computation, onFlush is after computation and before any change, maybe thats the solution

@szymach
Copy link
Contributor Author

szymach commented Jun 7, 2017

Moved to #76

@szymach szymach closed this as completed Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants