Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jan 23, 2024
1 parent 4137d63 commit 5910113
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/EntityMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -800,12 +800,11 @@ public function deleteWhere(mixed $conditions, int $options = 0): void
} else {
// If Entity has keys, use this keys to delete once per item.
$delItems = (function () use ($metadata, $conditions) {
while (
$item = $this->getORM()
$query = $this->getORM()
->from($metadata->getClassName())
->where($this->conditionsToWheres($conditions))
->get($metadata->getClassName())
) {
->where($this->conditionsToWheres($conditions));

while ($item = $query->get($metadata->getClassName())) {
yield $item;
}
})();
Expand Down

0 comments on commit 5910113

Please sign in to comment.