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