Setup to allow creating snipped from API

This commit is contained in:
Tim
2025-09-22 14:05:45 +02:00
parent 29df284237
commit 933dc424c3
10 changed files with 168 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ class Snip
#[ORM\Column]
public bool $public = false;
#[ORM\OneToMany(mappedBy: 'snip', targetEntity: SnipContent::class, orphanRemoval: true)]
#[ORM\OneToMany(targetEntity: SnipContent::class, mappedBy: 'snip', orphanRemoval: true)]
public Collection $snipContents;
#[ORM\OneToOne]