Weird Zero Key Bug In Doctrine Odm

Hi, folks! I’ve spend some time investigating strange Exception thrown by Mongo php client:

MongoException - zero-length keys are not allowed, did you use $ with double quotes?