public function activateOptions() { if (!$this->getHost()) { $this->setHost(gethostname()); } return parent::activateOptions(); }