Henrique Mascarenhas Mon Jan 10 06:42:13 -0500 2011

Subject: setters dont work

my table "cadastro" have a column "nome", but when i use:

public function set_nome($nome) {
$this->assign_attribute('nome',$nome . ' testing 2');

}

and

$C = new Cadastro;
$C->nome = 'testing';
$C->save();

the result is a record with "nome" testing instead of 'testing testing 2'...
what's happing?


Jacques Fuentes Mon Jan 10 18:42:26 -0500 2011

Please ensure you have the code. Setters without static declaration were released recently.

(1-1/1)