Skip to content

Commit

Permalink
A transaction in a manipulator DeleteManipulator returns a File ent…
Browse files Browse the repository at this point in the history
…ity instead of the File's source
  • Loading branch information
tg666 committed Mar 30, 2021
1 parent b7f23a3 commit 1a149e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Storage/Manipulator/Delete/DeleteManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __invoke(OptionsInterface $options, FileInterface $file): void
$transaction = $this->transactionFactory->create(static function (EntityManagerInterface $em, FileInterface $file) {
$em->remove($file);

return $file->getSource();
return $file;
}, [
'file' => $file,
'options' => $options,
Expand Down

0 comments on commit 1a149e1

Please sign in to comment.