From 620234136316c3b18250265d4943a649a62d6a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yonel=20Ceruto=20Gonz=C3=A1lez?= Date: Fri, 26 Jun 2015 15:36:21 -0400 Subject: [PATCH] Ensure that the entity is updated. | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | All | Fixed tickets | #5448 --- cookbook/doctrine/file_uploads.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbook/doctrine/file_uploads.rst b/cookbook/doctrine/file_uploads.rst index 0282086c165..f1e677c2f6e 100644 --- a/cookbook/doctrine/file_uploads.rst +++ b/cookbook/doctrine/file_uploads.rst @@ -494,6 +494,7 @@ property, instead of the actual filename:: if (is_file($this->getAbsolutePath())) { // store the old name to delete after the update $this->temp = $this->getAbsolutePath(); + $this->path = null; } else { $this->path = 'initial'; }