문자열 변환 오류에 배열하고 난 다음과 같은 오류를 얻을Kohana ORM : 내 로컬 호스트 XAMPP에 Kohana/ORM을 사용하여 시도
ErrorException [공지] : 문자열 변환 MODPATH \의 ORM \ 클래스 배열 \ kohana \ ORM .PHP는 [980]
975 }
976 else
977 {
978 // List columns and mirror for performance
979 $this->_table_columns = $this->list_columns();
980 $this->_table_columns = array_combine($this->_table_columns, $this->_table_columns);
981
982 // Load column cache
983 ORM::$_column_cache[$this->_object_name] = $this->_table_columns;
984 }
985 }
다른 프레임 워크/PHP 응용 프로그램에 나타나는 일반적인 오류 것 같다,하지만 난 그것을 해결하기 위해 어떤 단서를 발견하지 않았습니다. 두 개의 필드 ID가 - 차 INT 이름 - -
모델은 바로 기본 ORM
class Model_Product extends ORM {
}
MySQL의 표 (UTF-8 이노)는 어떤 부두 어디 VARCHAR (50)
도움 매우 감사합니다
미리 감사드립니다!
편집 : 요청 vardump
array(2) {
["id"]=>
array(13) {
["type"]=>
string(3) "int"
["min"]=>
string(11) "-2147483648"
["max"]=>
string(10) "2147483647"
["column_name"]=>
string(2) "id"
["column_default"]=>
NULL
["data_type"]=>
string(3) "int"
["is_nullable"]=>
bool(false)
["ordinal_position"]=>
int(1)
["display"]=>
string(2) "11"
["comment"]=>
string(0) ""
["extra"]=>
string(14) "auto_increment"
["key"]=>
string(3) "PRI"
["privileges"]=>
string(31) "select,insert,update,references"
}
["name"]=>
array(12) {
["type"]=>
string(6) "string"
["column_name"]=>
string(4) "name"
["column_default"]=>
NULL
["data_type"]=>
string(7) "varchar"
["is_nullable"]=>
bool(false)
["ordinal_position"]=>
int(2)
["character_maximum_length"]=>
string(2) "50"
["collation_name"]=>
string(15) "utf8_general_ci"
["comment"]=>
string(0) ""
["extra"]=>
string(0) ""
["key"]=>
string(0) ""
["privileges"]=>
string(31) "select,insert,update,references"
}
}
'var_dump ($ this-> list_columns())'를 질문에 추가하십시오. – hakre
님이 vardump를 추가했습니다. – rootman
사용중인 버전이 무엇입니까? – Kowser