// Clear this objects properties and set blank error messages in case they are accessed
foreach ($this->fields as $field)
{
$this->{$field} = NULL;
$this->error->{$field} = '';
}
// Clear the auto transaction error
if($this->auto_transaction) {
$this->error->transaction = '';
}
// Clear this objects "has many" related objects
foreach ($this->has_many as $related => $properties)
{
$this->error->{$related} = '';
unset($this->{$related});
}
// Clear this objects "has one" related objects
foreach ($this->has_one as $related => $properties)
{
$this->error->{$related} = '';
unset($this->{$related});
}
// Clear the query related list
$this->query_related = array();
// Clear and refresh stored values
$this->stored = new stdClass();
$this->_refresh_stored_values();
}
Thats the method... Im still getting the same error