public function toArray() { return array_merge(parent::toArray(), array('dateDisplayed' => $this->dateDisplayed, 'type' => $this->type)); }
public function toArray() { return array_merge(parent::toArray(), array('parentId' => $this->parentId, 'imageId' => $this->imageId, 'children' => $this->getChildren()->toArray())); }