Skip to content

Commit f44cccf

Browse files
ycerutoweaverryan
authored andcommitted
Ensure that the entity is updated.
| Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | All | Fixed tickets | #5448
1 parent 1019b90 commit f44cccf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cookbook/doctrine/file_uploads.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ property, instead of the actual filename::
494494
if (is_file($this->getAbsolutePath())) {
495495
// store the old name to delete after the update
496496
$this->temp = $this->getAbsolutePath();
497+
$this->path = null;
497498
} else {
498499
$this->path = 'initial';
499500
}

0 commit comments

Comments
 (0)