*/ #[ORM\OneToMany(targetEntity: 'AppBundle\Entity\Education\Education', mappedBy: 'educationCategory', orphanRemoval: true)] #[Groups(['educationcategory_education'])] private $educations; /** * Constructor */ public function __construct() { $this->educations = new ArrayCollection(); } /** * Sets id. * * @param int $id * * @return $this */ public function setId($id) { $this->id = $id; return $this; } /** * Gets id. * * @return int */ public function getId() { return $this->id; } /** * Sets organization. * * @param Organization $organization * * @return $this */ public function setOrganization(Organization $organization) { $this->organization = $organization; return $this; } /** * Gets organization. * * @return Organization */ public function getOrganization() { return $this->organization; } /** * Sets educationTypeEnum. * * @param String $educationTypeEnum * * @return $this */ public function setEducationTypeEnum($educationTypeEnum) { $this->educationTypeEnum = $educationTypeEnum; return $this; } /** * Gets educationTypeEnum. * * @return String */ public function getEducationTypeEnum() { return $this->educationTypeEnum; } /** * Sets label. * * @param string $label * * @return $this */ public function setLabel($label) { $this->label = $label; return $this; } /** * Gets label. * * @return string */ public function getLabel() { return $this->label; } /** * Add education * * @param \AppBundle\Entity\Education\Education $education * * @return EducationCategory */ public function addEducation(\AppBundle\Entity\Education\Education $education) { $this->educations[] = $education; return $this; } /** * Remove education * * @param \AppBundle\Entity\Education\Education $education */ public function removeEducation(\AppBundle\Entity\Education\Education $education) { $this->educations->removeElement($education); } /** * Get educations * * @return \Doctrine\Common\Collections\Collection */ public function getEducations() { return $this->educations; } }