Example #1
0
 /**
  * {@inheritdoc}
  */
 protected function onSuccess($entity)
 {
     if (null === $entity->getOrganization()) {
         $entity->setOrganization($this->organization);
     }
     parent::onSuccess($entity);
 }
 /**
  * {@inheritdoc}
  */
 protected function onSuccess($entity)
 {
     $action = $this->entityRoutingHelper->getAction($this->request);
     if ($action === 'activity') {
         $this->activityManager->addActivityTarget($entity, $this->getTargetEntity());
     }
     parent::onSuccess($entity);
 }