Doctrine MongoDB ODM

get_class() expects parameter 1 to be object, array given