mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-24 05:34:26 +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(
|
$torrent->setTorrentPosterId(
|
||||||
$torrentPoster->getId()
|
$torrentPoster->getId()
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->entityManagerInterface->persist($torrent);
|
|
||||||
$this->entityManagerInterface->flush();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$torrent->setTorrentPosterId(
|
||||||
|
null
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->entityManagerInterface->persist($torrent);
|
||||||
|
$this->entityManagerInterface->flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user