Replaced deprecated method "getEntityManager" by "getManager"

Missed part of Issue #123
Replaced deprecated getEntityNamespace by getAliasNamespace
Merge branch '2.1' of github.com:66Ton99/SensioGeneratorBundle