From 5992bc1556c519cb132677af61e4ff777d2a8fbb Mon Sep 17 00:00:00 2001 From: dmitry krokhin Date: Tue, 7 May 2024 17:46:26 +0300 Subject: [PATCH] pool changes flush method --- src/Pool.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Pool.php b/src/Pool.php index b430252..e794b38 100644 --- a/src/Pool.php +++ b/src/Pool.php @@ -15,6 +15,13 @@ public function __construct( ) { } + public function flushChanges(): void + { + foreach ($this->mappers as $mapper) { + $mapper->flushChanges(); + } + } + public function getChanges(): array { $changes = [];