/** * @return array */ public function toArray() { $array = parent::toArray(); $array['properties'] = $this->properties->toArray(); unset($array['name']); if (empty($array['properties'])) { $array['properties'] = new \stdClass(); } return $array; }
/** * @return array */ public function toArray() { $array = parent::toArray(); unset($array['name']); return $array; }