public function init() { parent::init(); if (!$this->db) { $this->db = $this->app->db; } if ($this->owner instanceof Field_Reference && !empty($this->owner->owner->relations)) { $this->relations =& $this->owner->owner->relations; } }
function init() { parent::init(); $this->hasOne('dokku_alt/Host'); $this->addField('ts')->type('datetime')->defaultValue(date('Y-m-d H:i:s')); $this->addField('line'); }