Skip to content
Permalink
Browse files

Sorting activities from latest to oldest

  • Loading branch information...
thisismeonmounteverest committed Oct 7, 2019
1 parent bde2992 commit 88e202881bfc8193fc8b8868f8ad64e5487042e4
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Repository/ActivityRepository.php
@@ -76,6 +76,7 @@ public function queryLatestBannedAdmins()
return $this->createQueryBuilder('a')
->join('App:ActivityAttendee', 'aa', Join::WITH, 'aa.activity = a and aa.organizer = 1')
->join('App:Member', 'm', Join::WITH, "aa.attendee = m and m.status = 'Banned'")
->orderBy('a.starts', 'desc')
->getQuery();
}

0 comments on commit 88e2028

Please sign in to comment.
You can’t perform that action at this time.