diff --git a/source/development/pagination/example.php b/source/development/pagination/example.php index bfcac41eb..6ed1e68ef 100644 --- a/source/development/pagination/example.php +++ b/source/development/pagination/example.php @@ -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