コード例 #1
0
 /**
  * @param EmailModel  $emailModel
  * @param EmailEntity $emailEntity
  */
 protected function applyEntityDataFromEmail(EmailModel $emailModel, EmailEntity $emailEntity)
 {
     $entities = $emailEntity->getActivityTargetEntities();
     foreach ($entities as $entity) {
         if ($entity != $this->helper->getUser()) {
             $emailModel->setEntityClass(ClassUtils::getClass($entity));
             $emailModel->setEntityId($entity->getId());
             return;
         }
     }
 }