From 50cab46737b92e2e18aadbd6c6bc51b4d421166e Mon Sep 17 00:00:00 2001 From: Mikel Madariaga Date: Tue, 16 Jan 2024 16:08:20 +0100 Subject: [PATCH] fixed blob getter issues --- EntityGeneratorBundle/Doctrine/Getter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EntityGeneratorBundle/Doctrine/Getter.php b/EntityGeneratorBundle/Doctrine/Getter.php index 284d197..730597e 100644 --- a/EntityGeneratorBundle/Doctrine/Getter.php +++ b/EntityGeneratorBundle/Doctrine/Getter.php @@ -66,9 +66,11 @@ public function toString(string $nlLeftPad = ''): string $response[] = ' }'; $response[] = ''; } + + $response[] = ' rewind($this->' . $this->propertyName . ');'; + $response[] = ''; $response[] = ' /** @var string $response */'; $response[] = ' $response = stream_get_contents($this->' . $this->propertyName . ');'; - $response[] = ' rewind($this->' . $this->propertyName . ');'; $response[] = ''; $response[] = ' return $response;'; } else {