From 4e5a1883dad562b3f8ac6b5d165c22201ff42f6a Mon Sep 17 00:00:00 2001
From: Nicos Panayides <nicosp@gmail.com>
Date: Tue, 14 Jan 2025 15:25:08 +0200
Subject: [PATCH] Fix the check for skipAddTrashCondition

---
 src/Model/Behavior/TrashBehavior.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
         }