Open olivier34000 opened 1 year ago
Thanks for the report! Scheduling for the next bugfix version.
I believe the bug lies somewhere in \Doctrine\ODM\MongoDB\Persisters\DocumentPersister::prepareQueryOrNewObj
as ODM tries to prepare a query, sees identifier
field and tries to case it to its type.
BC Break Report
Summary
I have a document with a field with the type object_id. I try to unset this field with the query builder and a exception is thrown.
Previous behavior
In the 1.3 version it worked but I think because the driver was less strict.
Current behavior
How to reproduce
Add a field in the document User
Now we can add test in the class BuilderTest
The error