Skip to content

Commit

Permalink
Catch possible null value error in ModelFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Apr 3, 2024
1 parent 011b83f commit a9e3f31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Filter/ModelFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ private function buildInExpression(ProxyQueryInterface $query, string $alias, Fi
$orX = $queryBuilder->expr()->orX();

foreach ($data->getValue() as $value) {
if (!\is_object($value)) {
continue;
}

$andX = $queryBuilder->expr()->andX();

foreach ($metadata->getIdentifierValues($value) as $fieldName => $identifierValue) {
Expand Down

0 comments on commit a9e3f31

Please sign in to comment.