function init() { parent::init(); $this->addField('days_worked')->system(true)->datatype('int'); $this->addField('salary')->mandatory(true)->datatype('money'); $this->addField('money_owed')->caption('Owed')->calculated(true); }
public function init() { parent::init(); $this->addCondition('gender', 'M'); }
function init() { parent::init(); $this->hasOne('Mother'); $this->hasMany('Books'); }
function init() { parent::init(); $this->addField('days_worked')->system(true)->datatype('int'); $this->addField('salary')->mandatory('Salary is required')->datatype('money'); }