Add species fixture

This commit is contained in:
2024-05-22 17:16:38 +02:00
parent cfb53dad52
commit d4cc71946d
7 changed files with 342 additions and 1 deletions

View File

@@ -31,6 +31,9 @@ class Post
#[ORM\Column(type: Types::TEXT)]
private ?string $commentary = null;
#[ORM\ManyToOne(inversedBy: 'posts')]
private ?Species $species = null;
public function getId(): ?int
{
return $this->id;
@@ -107,4 +110,16 @@ class Post
return $this;
}
public function getSpecies(): ?Species
{
return $this->species;
}
public function setSpecies(?Species $species): static
{
$this->species = $species;
return $this;
}
}