Skip to content

Commit cb47d34

Browse files
authored
Fixed ololoshke_trololoshke alias at count table name
Renamed 'ololoshke_trololoshke' alias at count table name to 'dbal_count_tbl' in DBAL Query Builder Subscriber. This fixes #123 Scary "ololoshke_trololoshke" at the end of some queries. It makes easier understanding of query log.
1 parent d8098bd commit cb47d34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/DBALQueryBuilderSubscriber.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function items(ItemsEvent $event)
2727
$qb
2828
->resetQueryParts()
2929
->select('count(*) as cnt')
30-
->from('(' . $sql . ')', 'ololoshke_trololoshke')
30+
->from('(' . $sql . ')', 'dbal_count_tbl')
3131
;
3232

3333
$event->count = $qb
@@ -60,4 +60,4 @@ public static function getSubscribedEvents()
6060
'knp_pager.items' => array('items', 10 /*make sure to transform before any further modifications*/)
6161
);
6262
}
63-
}
63+
}

0 commit comments

Comments
 (0)