/**
  * Before deleting a meeting, delete meeting items.
  *
  * @param \Entities\MeetingItem $object
  */
 protected function preDelete($object)
 {
     // if a presentation exists, remove it
     $dir = self::getMeetingsDirectory() . DIRECTORY_SEPARATOR . $object->getMeeting()->getId();
     $file = $dir . DIRECTORY_SEPARATOR . $object->getPresentation();
     if (file_exists($file)) {
         @unlink($file);
     }
     // remove the directory also if it is empty
     if (count(@scandir($dir)) == 2) {
         @rmdir($dir);
     }
     return true;
 }
 public function getUpdatedAt()
 {
     $this->__load();
     return parent::getUpdatedAt();
 }