From f14d6f48fdc453fa0ee2c5f873c8d1d379176fb4 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:27:28 +0100 Subject: [PATCH] rewind before exists --- 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 b181a84cf..e5af81c75 100644 --- a/src/Persistence/Array_/Action.php +++ b/src/Persistence/Array_/Action.php @@ -277,6 +277,7 @@ public function count() */ public function exists() { + $this->generator->rewind(); $this->generator = new \ArrayIterator([[$this->generator->valid() ? 1 : 0]]); return $this;