Skip to content
Snippets Groups Projects
Commit a94fc349 authored by Jeremy Guiselin's avatar Jeremy Guiselin
Browse files

correct bug for record transactions

parent af056ee8
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,8 @@ class DefaultController extends FOSRestController
$view->setStatusCode(400);
$this->getLogger()->err($e->getMessage());
}
return $this->handleView($view);
}
$view->setStatusCode(403);
......
......@@ -21,7 +21,7 @@ class LeagueOnDeviceRepository extends EntityRepository
$em = $this->getEntityManager();
$qb = $this->getEntityManager()->getRepository('BackendBundle:League')->createQueryBuilder('l');
$ids = array_map(function ($el) {
return $el['id'];
return $el->id;
}, $leagues);
$qb
->select('l')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment