function init() { parent::init(); $this->addField('name'); $this->hasMany('Fee', 'feehead_id'); // $this->addHook('beforeDelete',$this); }
function init() { parent::init(); $this->addField('name')->display('hindi')->mandatory("Disease Name is Must"); $this->hasMany('Students_Disease', 'disease_id'); // $this->addHook('beforeDelete',$this); }