From d65d779341c280de606c9f88dc50330f8ce57ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Santos?= Date: Thu, 22 Jul 2021 01:04:45 +0200 Subject: [PATCH] fix: unexpected behaviour without a strict comparison --- src/ORM/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ORM/Query.php b/src/ORM/Query.php index be4d412..31e741c 100644 --- a/src/ORM/Query.php +++ b/src/ORM/Query.php @@ -25,7 +25,7 @@ public function triggerBeforeFind() $repository = $this->getRepository(); $options = $this->getOptions(); - if (!is_array($options) || !in_array('withDeleted', $options)) { + if (!is_array($options) || !in_array('withDeleted', $options, true)) { $aliasedField = $repository->aliasField($repository->getSoftDeleteField()); $this->andWhere($aliasedField . ' IS NULL'); }