*/ #[Assert\Valid] #[ORM\ManyToMany(targetEntity: 'Organization', mappedBy: 'typeOfPractices')] #[Groups(['typeofpractice'])] private $organization; public function __construct() { $this->organization = new ArrayCollection(); } /** * Gets id. * * @return int */ public function getId() { return $this->id; } /** * Gets name. * * @return string */ public function getName() { return $this->name; } /** * Gets category. * * @return string */ public function getCategory() { return $this->category; } }