Esempio n. 1
0
 public function testDeleteEvent()
 {
     $event = $this->_getEvent();
     $persistentEvent = $this->_backend->create($event);
     $this->_backend->delete($persistentEvent->getId());
     $attendeeBackend = new Calendar_Backend_Sql_Attendee($this->_backend->getAdapter());
     $this->assertEquals(0, count($attendeeBackend->getMultipleByProperty($persistentEvent->getId(), 'cal_event_id')));
     $this->setExpectedException('Tinebase_Exception_NotFound');
     $loadedEvent = $this->_backend->get($persistentEvent->getId());
 }
 /**
  * gets attendee of a given event
  *
  * @param Calendar_Model_Event $_event
  * @return Tinebase_Record_RecordSet
  */
 public function getEventAttendee(Calendar_Model_Event $_event)
 {
     $attendee = $this->_attendeeBackend->getMultipleByProperty($_event->getId(), Calendar_Backend_Sql_Attendee::FOREIGNKEY_EVENT);
     return $attendee;
 }