doctrine/doctrine2 — pull request #642 by dmishh (2013-04-04 14:45:47+00:00)
Title: replaced direct class in instance creation

return new EntityManager() -> return new static() on line 945
made code more reusable