Replaced deprecated method "getEntityManager" by "getManager"
Replaced deprecated method "getEntityManager" by "getManager"

Missed part of Issue #123

sensiolabs/SensioGeneratorBundle,sensiolabs/SensioGeneratorBundle,webmozart/SensioGeneratorBundle,peterkokot/SensioGeneratorBundle