From 1e1a7c7126220c903f7a0ed4a64989a378f867b5 Mon Sep 17 00:00:00 2001 From: Jonathan Foucher <jfoucher@gmail.com> Date: Mon, 12 Sep 2022 16:00:36 +0200 Subject: [PATCH] add database limit to action plan on dashboard --- src/Infrastructure/ORM/Registry/Repository/Mesurement.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Infrastructure/ORM/Registry/Repository/Mesurement.php b/src/Infrastructure/ORM/Registry/Repository/Mesurement.php index 98f2a846a..4c58eb937 100644 --- a/src/Infrastructure/ORM/Registry/Repository/Mesurement.php +++ b/src/Infrastructure/ORM/Registry/Repository/Mesurement.php @@ -383,6 +383,7 @@ class Mesurement extends CRUDRepository implements Repository\Mesurement //->setParameter('date_start', $date->format('Y-m-d')) ->setParameter('status', 'not-applied') ->orderBy('u.planificationDate', 'DESC') + ->setMaxResults($limit) ; if ($collectivity) { -- GitLab