public function toArray() { $array = parent::toArray(); $array['src'] = $this->getRelativePath(); return $array; }