Replaced deprecated method "getEntityManager" by "getManager"
Merge pull request #6 from stwe/master

Replaced deprecated method "getEntityManager" by "getManager"