From 8febad58330546c430a3da0a26c1b1dbf8a215fc Mon Sep 17 00:00:00 2001 From: Benn Oshrin Date: Mon, 5 Jan 2026 16:25:56 -0500 Subject: [PATCH] Fix deprecation (NOJIRA) --- app/src/Model/Table/MatchgridsTable.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/Model/Table/MatchgridsTable.php b/app/src/Model/Table/MatchgridsTable.php index c20ff99c6..badbbb3e8 100644 --- a/app/src/Model/Table/MatchgridsTable.php +++ b/app/src/Model/Table/MatchgridsTable.php @@ -274,11 +274,8 @@ public function ruleIsUnique($entity, array $options): bool|string { // the table name is not changed if(!$entity->id || $entity->isDirty('table_name')) { - $c = $this->find('all', [ - 'conditions' => [ - 'LOWER(Matchgrids.table_name)' => strtolower($entity->table_name) - ] - ]) + $c = $this->find() + ->where(['LOWER(Matchgrids.table_name)' => strtolower($entity->table_name)]) ->count(); if($c > 0) {