Bug Report #2033
ORM $_ignored_columns property should be defined as array()
| Status: | Closed | Start date: | 09/02/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | Modules:ORM | |||
| Target version: | v3.0.0 | |||
| Resolution: | fixed | Points: |
Description
In ORM save() method, it called in_array() method which the second parameter must be a array type, and predefine also be a array type.
protected $_ignored_columns;
Instead of
protected $_ignored_columns = array();
involve code:
$comment = ORM::factory('comment');
$comment->values($_POST);
if ( $comment->check() )
{
$comment->save();
}
History
Updated by Woody Gilk over 2 years ago
- Status changed from New to Assigned
- Assignee set to John Heathco
Updated by John Heathco over 2 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed
Updated by Woody Gilk over 2 years ago
- Category set to Modules:ORM