Project

General

Profile

Bug #106361 » extbaseFindBy.patch

Lina Wolf, 2025-03-12 07:33

View differences:

Classes/Persistence/Repository.php → Classes/Persistence/Repository.php (date 1741764600623)
$query = $this->createQuery();
$constraints = [];
foreach ($criteria as $propertyName => $propertyValue) {
if (!is_string($propertyName)) {
throw new \Exception('Repository::findBy() expects an array with string keys as first argument. ');
}
$constraints[] = $query->equals($propertyName, $propertyValue);
}
    (1-1/1)