Пример #1
0
 /**
  * @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;
     }
 }
Пример #2
0
 /**
  * @param	EventHasList $eventHasList The eventHasList object to add.
  */
 protected function doAddEventHasList($eventHasList)
 {
     $this->collEventHasLists[] = $eventHasList;
     $eventHasList->setEvents($this);
 }