modified Doctrine instantiation