X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/cc8288f0441b5320cb976dc9340c03a770dfa751..d7d9568d591148592db2ef8925d46a0c96cadb7b:/Repository/LocationRepository.php diff --git a/Repository/LocationRepository.php b/Repository/LocationRepository.php index 129a176..f5efbc6 100644 --- a/Repository/LocationRepository.php +++ b/Repository/LocationRepository.php @@ -148,7 +148,7 @@ ORDER BY '.(!empty($userId)?'COUNT(a.id) DESC, ':'').'COUNT(s.id) DESC, l.id' ]; //Set the request - $req = 'SELECT l.id, l.title + $req = 'SELECT l.id, l.title, l.short FROM RapsysAirBundle:UserLocation AS ul JOIN RapsysAirBundle:Location AS l ON (l.id = ul.location_id) WHERE ul.user_id = :uid'; @@ -164,6 +164,7 @@ WHERE ul.user_id = :uid'; $rsm->addEntityResult('RapsysAirBundle:Location', 'l'); $rsm->addFieldResult('l', 'id', 'id'); $rsm->addFieldResult('l', 'title', 'title'); + $rsm->addFieldResult('l', 'short', 'short'); //Send result return $em