mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 17:45:31 +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,12 +1209,19 @@ class TorrentService
|
||||||
$torrent->setTorrentPosterId(
|
$torrent->setTorrentPosterId(
|
||||||
$torrentPoster->getId()
|
$torrentPoster->getId()
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$torrent->setTorrentPosterId(
|
||||||
|
null
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$this->entityManagerInterface->persist($torrent);
|
$this->entityManagerInterface->persist($torrent);
|
||||||
$this->entityManagerInterface->flush();
|
$this->entityManagerInterface->flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue