From 41eb3ab0481bd8076a03696f142cb5e166eb4bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Mon, 17 Jan 2022 12:37:46 +0100 Subject: [PATCH] rewind also before getRow --- src/Persistence/Array_/Action.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Persistence/Array_/Action.php b/src/Persistence/Array_/Action.php index e5af81c756..e4f83323dd 100644 --- a/src/Persistence/Array_/Action.php +++ b/src/Persistence/Array_/Action.php @@ -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();