/**
  * Save event
  *
  * @param Newscoop\Entity\Events\CommunityTickerEvent $event
  * @param array $values
  * @return void
  */
 public function save(CommunityTickerEvent $event, array $values)
 {
     $event->setEvent($values['event']);
     $event->setParams(isset($values['params']) ? $values['params'] : array());
     if (!empty($values['user'])) {
         $user = is_int($values['user']) ? $this->getEntityManager()->getReference('Newscoop\\Entity\\User', $values['user']) : $values['user'];
         $event->setUser($user);
     }
     $this->getEntityManager()->persist($event);
 }
 public function getProperty($p_key)
 {
     $this->__load();
     return parent::getProperty($p_key);
 }