Gave more precise constraint for doctrine/mongodb-odm