diff --git a/src/Model/Behavior/TrashBehavior.php b/src/Model/Behavior/TrashBehavior.php index 33411ce..fca4ebe 100644 --- a/src/Model/Behavior/TrashBehavior.php +++ b/src/Model/Behavior/TrashBehavior.php @@ -181,7 +181,7 @@ public function trash(EntityInterface $entity, array $options = []): bool public function beforeFind(EventInterface $event, SelectQuery $query, ArrayObject $options, bool $primary): void { $option = $query->getOptions(); - if (empty($option['skipAddTrashCondition'])) { + if (!empty($option['skipAddTrashCondition'])) { return; }