Add Collector entity
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user