N/A: [Deprecated] fix getEntityManager is deprecated since Symfony 2.1