/** * @param CyclicalEvents $cyclicalEvents The cyclicalEvents object to add. */ protected function doAddCyclicalEvents(CyclicalEvents $cyclicalEvents) { // set the back reference to this object directly as using provided method either results // in endless loop or in multiple relations if (!$cyclicalEvents->getCustomListss()->contains($this)) { $cyclicalEventHasList = new CyclicalEventHasList(); $cyclicalEventHasList->setCyclicalEvents($cyclicalEvents); $this->addCyclicalEventHasList($cyclicalEventHasList); $foreignCollection = $cyclicalEvents->getCustomListss(); $foreignCollection[] = $this; } }
/** * @param CyclicalEventHasList $cyclicalEventHasList The cyclicalEventHasList object to add. */ protected function doAddCyclicalEventHasList($cyclicalEventHasList) { $this->collCyclicalEventHasLists[] = $cyclicalEventHasList; $cyclicalEventHasList->setCyclicalEvents($this); }