You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) Doctrine\ODM\MongoDB\Tests\Query\BuilderTest::testUnset2Field
TypeError: MongoDB\BSON\ObjectId::__construct(): Argument #1 ($id) must be of type ?string, int given
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: