got the $em into the service container