Renaming getEntityManager to getManager

Doctrine getEntityManager function is now depricated and replaced by getManager,
updated all getEntityManager calls.