Add species fixture
This commit is contained in:
1 parent
cfb53dad52
commit
d4cc71946d
7 files changed
+342
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user