Replaced Deprecated Function Call

`getEntityManager` is deprecated since Symfony 2.1. `getManager` should be used instead.