status = self::STATUS_INACTIVE; $this->create_time = time(); } public function beforeUpdate() { $this->update_time = time(); } }