Skip to content

Commit

Permalink
bug #5449 Ensure that the entity is updated. (yceruto)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5449).

Discussion
----------

Ensure that the entity is updated.

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | All
| Fixed tickets | #5448

Commits
-------

f44cccf Ensure that the entity is updated.
  • Loading branch information
weaverryan committed Aug 8, 2015
2 parents 1019b90 + f44cccf commit b892f48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cookbook/doctrine/file_uploads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit b892f48

Please sign in to comment.