public function complete() { $this->status = self::STATUS_COMPLETED; $this->complete_time = new CDbExpression('NOW()'); return $this->save(); }