-
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
Empty field value throws exception #12
Comments
FYI. This does not seem to be an issue with the MongoDB support as Doctrine just removes the offending field. |
@westinpigott, first: +1 for PR #18 |
I will have to check. You are saying that I need to change a value, flush, change another value on the same document, then flush again, correct? |
I have the same problem: Field "myField" is not a valid field of the entity "XXX\XXXBundle\Entity\MyEntity" in PreUpdateEventArgs. The problem occours when I save another entity in the same request before saving the entity that casuses the problem. The field value is not empty. I use Doctrine+MySQL. If I do a test saving the entoty without saving the previous entity (other class) there is no problem. |
When I want to encrypt an optional field which can be null, I get the following error:
Field "myField" is not a valid field of the entity "XXX\XXXBundle\Entity\MyEntity" in PreUpdateEventArgs.
The text was updated successfully, but these errors were encountered: