Skip to content

Commit

Permalink
fix: unexpected behaviour without a strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiofdsantos committed Jul 21, 2021
1 parent fe648ea commit d65d779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit d65d779

Please sign in to comment.