Name Fname Fri Jul 02 17:30:56 -0400 2010

Subject: __callStatic and callbacs

class User extends ActiveRecord\Model {
static $before_save=array('isUniqueData');
public function isUniqueData() {
static::find_by_login_or_email($this->login,$this->email);
}
}

Error:
Fatal error: Uncaught exception 'ActiveRecord\ActiveRecordException' with message 'Call to undefined method: find_by_login_or_email' in X:\home\cubecms.ru\www\cube\sys\activerecord\lib\Model.php:1246 Stack trace: #0 [internal function]: ActiveRecord\Model->__call('find_by_login_o...', Array) #1

See - ActiveRecord\Model->__call('find ...

__call? Wtf