Skip to content

Commit b0b09ca

Browse files
authored
Merge pull request #79 from Lokyrre/master
feat(filter): add the possibility to add an OR
2 parents ae87f87 + 6b01b7d commit b0b09ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Service/Request/QueryModifier/Modifier/FilterModifier.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ public function apply(ModelCriteria $query)
101101
$operator = Criteria::ISNOTNULL;
102102
}
103103
}
104+
if (isset($modifier['logic']) && $modifier['logic'] === 'OR') {
105+
$query->_or();
106+
}
104107
$modifierClass->filterBy($modifier['property'], $modifier['value'], $operator);
105108

106109
}

0 commit comments

Comments
 (0)