/**
  * "Success" form handler
  *
  * @param CalendarEvent   $entity
  * @param ArrayCollection $originalChildren
  * @param boolean         $notify
  */
 protected function onSuccess(CalendarEvent $entity, ArrayCollection $originalChildren, $notify)
 {
     $new = $entity->getId() ? false : true;
     $this->manager->persist($entity);
     $this->manager->flush();
     if ($new) {
         $this->emailSendProcessor->sendInviteNotification($entity);
     } else {
         $this->emailSendProcessor->sendUpdateParentEventNotification($entity, $originalChildren, $notify);
     }
 }