Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Add UploadedFile cleanup to fix EntityManager::flush errors#36

Merged
niels-nijens merged 2 commits into
FlexModel:masterfrom
niels-nijens:file-upload-cleanup
May 11, 2016
Merged

Add UploadedFile cleanup to fix EntityManager::flush errors#36
niels-nijens merged 2 commits into
FlexModel:masterfrom
niels-nijens:file-upload-cleanup

Conversation

@niels-nijens

Copy link
Copy Markdown
Contributor

Calling flush on the entity manager twice causes errors due to the temporary file in the UploadedFile instance already being moved during the first flush call.

This PR fixes this by cleaning up the UploadedFile instances after processing them.

@niels-nijens
niels-nijens merged commit ccf88fd into FlexModel:master May 11, 2016
@niels-nijens
niels-nijens deleted the file-upload-cleanup branch May 11, 2016 13:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant