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
On DoctrineMongoDBExtension::normalizeDriverOptions:319 we have typemap (as well as on all tests) but on ext-mongodbClient class constructor the key is typeMap. This generate various problems with array type hints on Doctrine\ODM\MongoDB\UnitOfWork:getOrCreateDocument for example which expect an array but get a MongoDB\Model\BSONArray (which is the default and is not an array).
On DoctrineMongoDBExtension::normalizeDriverOptions:319 we have
typemap
(as well as on all tests) but onext-mongodb
Client
class constructor the key istypeMap
. This generate various problems witharray
type hints onDoctrine\ODM\MongoDB\UnitOfWork:getOrCreateDocument
for example which expect an array but get aMongoDB\Model\BSONArray
(which is the default and is not an array).A var_dump of generated option:
Change row 319 to:
and the problem is solved.
The text was updated successfully, but these errors were encountered: