Exemple #1
0
 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);
 }
Exemple #2
0
 public function init()
 {
     parent::init();
     $this->addCondition('gender', 'M');
 }
Exemple #3
0
 function init()
 {
     parent::init();
     $this->hasOne('Mother');
     $this->hasMany('Books');
 }
Exemple #4
0
 function init()
 {
     parent::init();
     $this->addField('days_worked')->system(true)->datatype('int');
     $this->addField('salary')->mandatory('Salary is required')->datatype('money');
 }