This commit is contained in:
d-buchmann 2026-08-03 08:24:54 +02:00 committed by GitHub
commit 6aad0191ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -235,7 +235,8 @@ class StructuralDBElementRepository extends AttachmentContainingDBElementReposit
$qb = $this->createQueryBuilder('e');
//Use lowercase conversion to be case-insensitive
$qb->where($qb->expr()->like('LOWER(e.alternative_names)', 'LOWER(:name)'));
$qb->setParameter('name', '%'.$name.',%');
//Replace commas in the name with wildcard to match any placeholder character
$qb->setParameter('name', '%'.str_replace(',', '_', $name).',%');
$result = $qb->getQuery()->getResult();