Fix relation and try to implement delete
This commit is contained in:
@ -101,6 +101,8 @@ readonly class SnipContentService
|
||||
|
||||
public function delete(Snip $snip): void
|
||||
{
|
||||
// Cleanup the versions
|
||||
foreach ($snip->getSnipContents() as $snipContent) {
|
||||
$this->em->remove($snipContent);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user