/** * Add owner * * @param \Application\MainBundle\Entity\Owner $owner * * @return CollectionElement */ public function addOwner(\Application\MainBundle\Entity\Owner $owner) { $owner->addElement($this); $this->owners[] = $owner; return $this; }