Updating all getEntityManager calls to getManager

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