Remove deprecated call to getEntityManager

See: https://github.com/doctrine/DoctrineBundle/blob/master/Registry.php#L71