Replaced deprecated method "getEntityManager" by "getManager"

Missed part of Issue #123