Doctrine MongoDB ODM

Getting PHP notice and warning with empty persistent collection