Rapsys Git
/
airbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d868bf5
)
Add short to allow time detection after application form submit
author
Raphaël Gertz
<git@rapsys.eu>
Mon, 23 Aug 2021 07:48:49 +0000
(09:48 +0200)
committer
Raphaël Gertz
<git@rapsys.eu>
Mon, 23 Aug 2021 07:48:49 +0000
(09:48 +0200)
Repository/LocationRepository.php
patch
|
blob
|
history
diff --git
a/Repository/LocationRepository.php
b/Repository/LocationRepository.php
index 129a1763ee497dafc6b64bc339fbe20ab878fcc0..f5efbc6cdc4c0b57194827b3edbb1c468a057e11 100644
(file)
--- 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