Esempio n. 1
0
 public function onCommentChange(EntityEvent $event)
 {
     $this->getPosts()->updateCommentInfo($event->getEntity()->getPostId());
 }
Esempio n. 2
0
 public function onWidgetDelete(EntityEvent $event)
 {
     $settings = $this->getSettings();
     unset($settings[$event->getEntity()->getId()]);
     $this->setSettings($settings);
 }