mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-08 22:17:57 +00:00
fix torrent poster update on last poster delete #18
This commit is contained in:
parent
8742c91f9f
commit
99ea797699
@ -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…
Reference in New Issue
Block a user