Replaced Deprecated Function Call

`getEntityManager` is deprecated since Symfony 2.1. `getManager` should be used instead.
Merge pull request #140 from sprankhub/patch-1

Replaced Deprecated Function Call