Skip to content

Commit 32d1e97

Browse files
author
Elliot Bruneel
committed
chore: improve empty array check in SQL condition generation
1 parent 23f2286 commit 32d1e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Persisters/Entity/BasicEntityPersister.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ public function getSelectConditionStatementSQL($field, $value, $assoc = null, $c
17531753
$value = [$value];
17541754
}
17551755

1756-
if (empty($value)) {
1756+
if ($value === []) {
17571757
$selectedColumns[] = $column . ' IN (NULL)';
17581758
continue;
17591759
}

0 commit comments

Comments
 (0)