Browse Source

fix torrent poster update on last poster delete #18

main
ghost 1 year ago
parent
commit
99ea797699
  1. 11
      src/Service/TorrentService.php

11
src/Service/TorrentService.php

@ -1209,10 +1209,17 @@ class TorrentService
$torrent->setTorrentPosterId( $torrent->setTorrentPosterId(
$torrentPoster->getId() $torrentPoster->getId()
); );
}
$this->entityManagerInterface->persist($torrent); else
$this->entityManagerInterface->flush(); {
$torrent->setTorrentPosterId(
null
);
} }
$this->entityManagerInterface->persist($torrent);
$this->entityManagerInterface->flush();
} }
} }

Loading…
Cancel
Save