question = $question; return $this; } public function save() { if (!$this->question) { throw new Exception("Must set question before saving it"); } $question = $this->question; $question->save(); $question->attachRelated(); PhabricatorSearchPonderIndexer::indexQuestion($question); } }