@@ -324,8 +324,7 @@ class ApiController extends Controller
return new Response(json_encode(array('status' => 'error', 'message' => 'Could not find a package that matches this request (does user maintain the package?)')), 404);
}
- // put both updating the database and scanning the repository in a transaction
- $em = $this->get('doctrine.orm.entity_manager');
+ $em = $this->getDoctrine()->getManager();
$jobs = [];
/** @var Package $package */