Add Collector entity

This commit is contained in:
2024-11-06 11:12:16 +01:00
parent f7efe03340
commit 47bed0bacc
9 changed files with 584 additions and 2 deletions

View File

@@ -52,7 +52,11 @@ class Bibliography
private DoctrineCollection $objects;
private DoctrineCollection $persons;
#[ORM\JoinTable(name: 'rel_riferimento_personaggio')]
#[ORM\JoinColumn(name: 'Bibliografia_id_bib', referencedColumnName: 'id')]
#[ORM\InverseJoinColumn(name: 'Personaggio_id_pers', referencedColumnName: 'id')]
#[ORM\ManyToMany(targetEntity: Collector::class, inversedBy: 'bibliography')]
private DoctrineCollection $collectors;
private DoctrineCollection $sites;
@@ -169,4 +173,16 @@ class Bibliography
return $this;
}
public function getCollectors(): ?DoctrineCollection
{
return $this->collectors;
}
public function setCollectors(DoctrineCollection $collectors): static
{
$this->collectors = $collectors;
return $this;
}
}