/** * Returns an associative array, which key/value pairs represent * the properties stored by this object. * * @return array */ public function toArray() { $array = parent::toArray(); $array['fields'] = $this->fields; return $array; }