commit e6621564c3e79b13520945548d4bd980240306c9 parent 34959ee33cd4e44c9f1b7f5345a8dd97cb877cbe Author: Timo A. Hummel <felicitus@felicitus.org> Date: Wed, 9 Mar 2016 16:08:17 +0100 Merge pull request #609 from partkeepr/PartKeepr-608 Added setter so that duplicating parts will now work, fixes #608 Diffstat:
M | src/PartKeepr/UploadedFileBundle/Entity/UploadedFile.php | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/PartKeepr/UploadedFileBundle/Entity/UploadedFile.php b/src/PartKeepr/UploadedFileBundle/Entity/UploadedFile.php @@ -231,6 +231,17 @@ abstract class UploadedFile extends BaseEntity return $this->filename; } + + /** + * Sets the plain filename without path and suffix. + * + * @param $filename string The plain filename without path and suffix + */ + public function setFilename($filename) + { + $this->filename = $filename; + } + /** * Returns the extension for the file *