From 6083b7c662a2fc2c2b1b5cef60c7b3a210e80e07 Mon Sep 17 00:00:00 2001
From: lganee <ludovic.ganee@libriciel.coop>
Date: Tue, 3 Sep 2024 14:47:31 +0200
Subject: [PATCH] =?UTF-8?q?Un=20accord=20de=20versement=20ne=20peut=20pas?=
 =?UTF-8?q?=20=C3=AAtre=20supprim=C3=A9=20s'il=20est=20rattach=C3=A9=20?=
 =?UTF-8?q?=C3=A0=20un=20transfert=20https://gitlab.libriciel.fr/libriciel?=
 =?UTF-8?q?/pole-archivage/asalae/asalae2/-/issues/1999?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/Model/Entity/Agreement.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Model/Entity/Agreement.php b/src/Model/Entity/Agreement.php
index 71c1b127a..b90611d66 100644
--- a/src/Model/Entity/Agreement.php
+++ b/src/Model/Entity/Agreement.php
@@ -114,7 +114,7 @@ class Agreement extends Entity
             return true;
         }
         $Agreements = TableRegistry::getTableLocator()->get('Agreements');
-        $has = ['Archives'];
+        $has = ['Archives', 'Transfers'];
         foreach ($has as $modelName) {
             /** @var HasMany $assoc */
             $assoc = $Agreements->{$modelName};
-- 
GitLab