Skip to content

Commit

Permalink
Fix deprecation (NOJIRA)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Jan 5, 2026
1 parent 07e490e commit 8febad5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/src/Model/Table/MatchgridsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8febad5

Please sign in to comment.