function get_edit_values($primary_key_value) { $result = parent::get_edit_values($primary_key_value); // some driver like postgresql doesn't return string foreach ($result as $key => $value) { $result->{$key} = (string) $value; } return $result; }
protected function get_edit_values($primary_key_value) { $values = $this->basic_model->get_edit_values($primary_key_value); if (!empty($this->relation_n_n)) { foreach ($this->relation_n_n as $field_name => $field_info) { $values->{$field_name} = $this->get_relation_n_n_selection_array($primary_key_value, $field_info); } } return $values; }