Bug Report #4352
Array to string conversion Error
| Status: | Closed | Start date: | 12/01/2011 | |
|---|---|---|---|---|
| Priority: | Urgent | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | - | |||
| Target version: | Kohana v3.x - v3.1.5 | |||
| Resolution: | invalid | Points: | 1 |
Description
Platform:
- Windows
- xampp
- PHP 5.3.8
- Apache/2.2.21 (Win32)
Having a basic Model that just extends the ORM class creates an array to string conversion error in lines 931,980 of kohana/orm.php
// Create an array with all the columns set to NULL $values = array_combine($this->_table_columns, array_fill(0, count($this->_table_columns), NULL)); // LINE 931
// List columns and mirror for performance $this->_table_columns = $this->list_columns(); $this->_table_columns = array_combine($this->_table_columns, $this->_table_columns); // LINE 980Mysql Table (innoDB)
- id - int
- name - varchar(50)
History
Updated by Isaiah DeRose-Wilson about 1 year ago
- Status changed from New to Closed
- Assignee set to Isaiah DeRose-Wilson
- Target version set to v3.1.5
- % Done changed from 0 to 100
- Resolution set to invalid
It looks like something is wrong with your model. $this->_table_columns should never be a string.