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