Skip to content

Commit 9390332

Browse files
authored
Merge pull request #22 from flavioheleno/master
Fixes a bug when addAll is called with new entities only
2 parents e0e2fbb + da58053 commit 9390332

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Infrastructure/Model/Repository/Sql/SqlWriteRepository.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ public function addAll(array $values)
226226
*/
227227
protected function fetchExistingRows(array $ids) : array
228228
{
229+
if (empty($ids)) {
230+
return [];
231+
}
232+
229233
$selectQuery = $this->queryBuilder();
230234

231235
$idsPlaceholders = [];

0 commit comments

Comments
 (0)