Changed instances of getEntityManger to getManager for Symfony 2.3 compatability.