Doctrine Mongodb registry getter overridden

fixes #228