FEATURE [datamapper][regroupment] make the datamapper work

This commit is contained in:
2023-02-07 15:36:57 +01:00
parent fb9b9b9226
commit 1a44a516c2
5 changed files with 144 additions and 87 deletions

View File

@@ -24,7 +24,7 @@ class Regroupment
/**
* @var Center
* @ORM\ManyToMany(
* targetEntity="Chill\MainBundle\Entity\Center"
* targetEntity=Center::class
* )
* @ORM\Id
*/
@@ -52,7 +52,7 @@ class Regroupment
$this->centers = new ArrayCollection();
}
public function getCenters(): ?Collection
public function getCenters(): Collection
{
return $this->centers;
}