Skip to content

Commit

Permalink
Fixed ololoshke_trololoshke alias at count table name
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mulcek authored Aug 23, 2016
1 parent d8098bd commit cb47d34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function items(ItemsEvent $event)
$qb
->resetQueryParts()
->select('count(*) as cnt')
->from('(' . $sql . ')', 'ololoshke_trololoshke')
->from('(' . $sql . ')', 'dbal_count_tbl')
;

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

0 comments on commit cb47d34

Please sign in to comment.