Пример #1
0
 /**
  * @param	CyclicalEventHasList $cyclicalEventHasList The cyclicalEventHasList object to add.
  */
 protected function doAddCyclicalEventHasList($cyclicalEventHasList)
 {
     $this->collCyclicalEventHasLists[] = $cyclicalEventHasList;
     $cyclicalEventHasList->setCustomLists($this);
 }
Пример #2
0
 /**
  * @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->getCyclicalEventss()->contains($this)) {
         $cyclicalEventHasList = new CyclicalEventHasList();
         $cyclicalEventHasList->setCustomLists($customLists);
         $this->addCyclicalEventHasList($cyclicalEventHasList);
         $foreignCollection = $customLists->getCyclicalEventss();
         $foreignCollection[] = $this;
     }
 }