Skip to content

Commit

Permalink
Added group by statement - fixes MySQL platform incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMikes committed Jun 16, 2019
1 parent 59ed368 commit a09cbca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .env
Expand Up @@ -55,8 +55,8 @@ YOUTUBE_API_KEY=

###> Facebook ###
# see https://developers.facebook.com/
FACEBOOK_APP_ID=
FACEBOOK_APP_SECRET=
FACEBOOK_APP_ID=12345 # Replace it, it is just to make container compile
FACEBOOK_APP_SECRET=XYZ # Replace it, it is just to make container compile
# see https://developers.facebook.com/tools/accesstoken/
FACEBOOK_ACCESS_TOKEN=
###< Facebook#
1 change: 1 addition & 0 deletions packages/Training/src/Repository/TrainingRepository.php
Expand Up @@ -40,6 +40,7 @@ public function fetchRecentlyActive(): array
->setParameter(':weekAgo', DateTime::from('- 7 days'))
->setParameter(':nextWeek', DateTime::from('+ 7 days'))
->groupBy('t.id')
->addGroupBy('tt.startDateTime')
->orderBy('tt.startDateTime') // put more recent first
->getQuery()
->getResult();
Expand Down

0 comments on commit a09cbca

Please sign in to comment.