diff --git a/src/Behaviors.php b/src/Behaviors.php index 5c54350..c77f3c7 100644 --- a/src/Behaviors.php +++ b/src/Behaviors.php @@ -155,6 +155,10 @@ public function rewriteCondition(Filter\Condition $condition, $relation = null) $replacement = $behavior->rewriteCondition($filter ?: $condition, $relation); if ($replacement !== null) { $filter = $replacement; + if (! $filter instanceof Filter\Condition) { + // Other behaviors get their chance once the replacement is being processed + break; + } } }