public function __get($name) { if ($name == "value") { return $this->model->{$this->col_name}; } return parent::__get($name); }