Thanks for pointing out issue with XML, I wasn't aware of that. Basically I tried to find how to allow any key in array but with no luck so I followed jmikola comment about VariableNode https://github.com/doctrine/DoctrineMongoDBBundle/issues/203#issuecomment-29113861 - I'll look after prototyped array node