Fix for invalid Doctrine ORM Manager