Пример #1
0
 function init()
 {
     parent::init();
     $this->addField('name');
     $this->hasMany('Fee', 'feehead_id');
     // $this->addHook('beforeDelete',$this);
 }
Пример #2
0
 function init()
 {
     parent::init();
     $this->addField('name')->display('hindi')->mandatory("Disease Name is Must");
     $this->hasMany('Students_Disease', 'disease_id');
     // $this->addHook('beforeDelete',$this);
 }