Skip to content

Commit

Permalink
rewind also before getRow
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jan 17, 2022
1 parent 34ed294 commit 41eb3ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Persistence/Array_/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ public function getRows(): array
*/
public function getRow(): ?array
{
$this->generator->rewind(); // TODO alternatively allow to fetch only once
$row = $this->generator->current();
$this->generator->next();

Expand Down

0 comments on commit 41eb3ab

Please sign in to comment.