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 ajax_relation($state_info) { if (!isset($this->relation[$state_info->field_name])) { return false; } list($field_name, $related_table, $related_field_title, $where_clause, $order_by) = $this->relation[$state_info->field_name]; return $this->basic_model->get_ajax_relation_array($state_info->search, $field_name, $related_table, $related_field_title, $where_clause, $order_by); }