Fix new snip creation with content reference

This commit is contained in:
Tim
2023-12-20 23:17:45 +01:00
parent caa6d4da17
commit 3225ec5fe0
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ readonly class SnipContentService
$this->em->persist($content);
$this->em->flush();
$this->snip->setActiveVersion($content->getId());
$this->snip->setActiveVersion($content);
$this->em->persist($this->snip);
$this->em->flush();
}