Esempio n. 1
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->getEventss()->contains($this)) {
         $eventHasList = new EventHasList();
         $eventHasList->setCustomLists($customLists);
         $this->addEventHasList($eventHasList);
         $foreignCollection = $customLists->getEventss();
         $foreignCollection[] = $this;
     }
 }