Jezek Jezek Wed Feb 16 02:45:35 -0500 2011

Subject: Callbacks??

Can't seem to get this code to work.

class User extends ActiveRecord\Model {

static $table_name = "users";
static $before_create = array('before_create');
function before_create() {
die('test');
}
static $before_save = array('before_save');
function before_save() {
die('test');
}

}
?>

then I call..

$user = User::create($this->data['User']);
?>

Edit:
Seem to have got it working now I think, but I might have find another bug.


Jezek Jezek Wed Feb 16 02:46:57 -0500 2011

Using latest version.

Jezek Jezek Wed Feb 16 02:52:08 -0500 2011
Jezek Jezek Wed Feb 16 03:23:47 -0500 2011
Jezek Jezek Wed Feb 16 03:23:57 -0500 2011
Jezek Jezek Wed Feb 16 03:25:07 -0500 2011
Jezek Jezek Wed Feb 16 03:25:14 -0500 2011

test

Jezek Jezek Wed Feb 16 03:25:25 -0500 2011
Jezek Jezek Wed Feb 16 03:25:34 -0500 2011

(1-8/8)