function toArray() { $ret = []; foreach ($this->model->toArray() as $k => $v) { $ret[$k] = $this->get($k); } return $ret; }