Skip to content

Commit f6ae70b

Browse files
smarcetCopilot
andauthored
Update app/Repositories/Summit/DoctrineSummitRepository.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0b77221 commit f6ae70b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/Repositories/Summit/DoctrineSummitRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ public function getCurrentAndRelations(array $relations = []): ?Summit
486486
Summit::class,
487487
$relations,
488488
function ($qb, string $rootAlias): void {
489-
$qb->where('s.active = 1')
490-
->orderBy('s.begin_date', 'DESC');
489+
$qb->where("$rootAlias.active = 1")
490+
->orderBy("$rootAlias.begin_date", 'DESC');
491491
}
492492
);
493493
} catch (\Throwable $e) {

0 commit comments

Comments
 (0)