load($indexerId, 'indexer_id'); if (!$this->getId()) { $this->setIndexerId($indexerId); } return $this; } /** * Status setter * * @param string $status * @return $this */ public function setStatus($status) { return parent::setStatus($status); } /** * Processing object before save data * * @return $this */ public function beforeSave() { $this->setUpdated(time()); return parent::beforeSave(); } }