Doctrine MongoDB ODM

No possibility to get a json object by a working document with toArray method (inluding all the embedded documents as arrays)