-
Notifications
You must be signed in to change notification settings - Fork 229
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
Check changeset #11
Comments
Oops, no that will break stuff. The issue what I'm having is with FOSUserBundle and its fos_user.registration.completed event. With the following code I will get: Field "email" is not a valid field of the entity ... in PreUpdateEventArgs. Here's the code:
So the code above will result in the error mentioned above. I believe it's the order of events what cause the issue, but I am not quite sure where the actual issue is. According to the error message DoctrineEncryptSubscriber::preUpdate() tries to update a field that doesn't exist. Any ideas? |
+1 for a solution to this. |
+1 Hi @matthewvalimaki, what's wrong with your solution. I think it could solve the problem here. |
We've encountered the same problem with multiple updates of an entity within the same request. It can render this bundle unusable on applications with complex requests. This is the same issue as #40. The resolution proposed here for DoctrineEncryptSubscriber::preUpdate() here: reprovinci#2 ...
... appears to resolve the issue. |
Maybe we can fix it and create PR ? |
I propose that in DoctrineEncryptSubscriber::preUpdate() we check the entityChangeSet[] for a field before trying to update the field.
The text was updated successfully, but these errors were encountered: