Fix snip deletion
This commit is contained in:
@ -98,11 +98,4 @@ readonly class SnipContentService
|
||||
$this->em->persist($content);
|
||||
$this->em->flush();
|
||||
}
|
||||
|
||||
public function delete(Snip $snip): void
|
||||
{
|
||||
foreach ($snip->getSnipContents() as $snipContent) {
|
||||
$this->em->remove($snipContent);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user