Toolkit::addMetadataDriverForEntityManager() fixed to be compatible with Doctrine 2.3