mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
fix torrent poster update on last poster delete #18
This commit is contained in:
parent
8742c91f9f
commit
99ea797699
1 changed files with 10 additions and 3 deletions
|
|
@ -1209,10 +1209,17 @@ class TorrentService
|
|||
$torrent->setTorrentPosterId(
|
||||
$torrentPoster->getId()
|
||||
);
|
||||
|
||||
$this->entityManagerInterface->persist($torrent);
|
||||
$this->entityManagerInterface->flush();
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$torrent->setTorrentPosterId(
|
||||
null
|
||||
);
|
||||
}
|
||||
|
||||
$this->entityManagerInterface->persist($torrent);
|
||||
$this->entityManagerInterface->flush();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue