/** * @param EventHasList $eventHasList The eventHasList object to add. */ protected function doAddEventHasList($eventHasList) { $this->collEventHasLists[] = $eventHasList; $eventHasList->setCustomLists($this); }
/** * @param CustomLists $customLists The customLists object to add. */ protected function doAddCustomLists(CustomLists $customLists) { // set the back reference to this object directly as using provided method either results // in endless loop or in multiple relations if (!$customLists->getEventss()->contains($this)) { $eventHasList = new EventHasList(); $eventHasList->setCustomLists($customLists); $this->addEventHasList($eventHasList); $foreignCollection = $customLists->getEventss(); $foreignCollection[] = $this; } }