Bug Report #2033

ORM $_ignored_columns property should be defined as array()

Added by icy leaf over 2 years ago. Updated over 2 years ago.

Status:Closed Start date:09/02/2009
Priority:Normal Due date:
Assignee:John Heathco % 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

Also available in: Atom PDF