Esempio n. 1
0
 public function jsonSerialize()
 {
     $array = parent::jsonSerialize();
     if ($publish = $this->findStreamPublish()) {
         $array['user'] = $publish->getUser();
     }
     return $array;
 }