Skip to content

Commit 788fe6e

Browse files
committed
fix(repository): fix on fastcount method
Double apply2Query in getFastCount — $filter->apply2Query() was called twice on the same filter object. The first call mutates filter values (epoch → date string), so the second call tries new DateTime("@2026-04-28 22:00:00") which fails. Removed the duplicate call. Missing c alias for selection_status filter , The requiredAliases() method didn't include the category join (c) when selection_status was active, but the filter's DQL references c.session_count / c.lightning_count. Added $need['c'] = true.
1 parent b4951f1 commit 788fe6e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

app/Repositories/Summit/DoctrineSummitEventRepository.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ private function requiredAliases(?Filter $filter, ?Order $order): array
541541
$need['av'] = true;
542542

543543
if($has("selection_status") || $ord('selection_status')){
544-
$need['selp'] = $need['ssp'] = $need['sspl'] = true;
544+
$need['selp'] = $need['ssp'] = $need['sspl'] = $need['c'] = true;
545545
}
546546

547547
if($has('track_chairs_status'))
@@ -617,10 +617,6 @@ public function getFastCount(Filter $filter = null, Order $order = null){
617617

618618
$query = $this->applyExtraJoins($query, $filter, $order);
619619

620-
if(!is_null($filter)){
621-
$filter->apply2Query($query, $this->getFilterMappings($filter));
622-
}
623-
624620
if (!is_null($filter)) {
625621
$filter->apply2Query($query, $this->getFilterMappings($filter));
626622

0 commit comments

Comments
 (0)