Bug #106361 » extbaseFindBy.patch
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);
|
||
}
|
||