mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
correct DQL query
This commit is contained in:
parent
0337f252cd
commit
cbb50013b3
@ -13,7 +13,7 @@ class ItemController extends Controller {
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
// first, get the number of total item are available
|
||||
$total = $em
|
||||
->createQuery("COUNT (item.id) FROM ChillMyBundle:Item item")
|
||||
->createQuery("SELECT COUNT (item.id) FROM ChillMyBundle:Item item")
|
||||
->getSingleScalarResult();
|
||||
|
||||
// get the PaginatorFactory
|
||||
|
Loading…
x
Reference in New Issue
Block a user