Commit 80f4598e authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

UploadedFileRepository: laisse le listener gérer les suppressions.

Showing with 1 addition and 1 deletion
+1 -1
......@@ -83,7 +83,7 @@ class UploadedFileRepository extends EntityRepository implements FileManagerInte
public function delete(UploadedFile $file)
{
$this->_em->remove($file);
$this->filesystem->delete($file->getPath());
$this->_em->flush();
$this->log(LogLevel::INFO, 'File deleted', ['file' => $file]);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment