function init() { parent::init(); $this->addCondition('type', 'admin'); $this->hasOne('dokku_alt/Host', null, null, 'Host'); $this->addHook('beforeSave,beforeDelete', $this); }
function init() { parent::init(); $this->addCondition('type', 'deploy'); $this->hasOne('dokku_alt/App', null, null, 'App'); $this->addHook('beforeSave', $this); }