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