예제 #1
0
 public function save()
 {
     if (!$this->getQueryKey()) {
         $this->setQueryKey(Filesystem::readRandomCharacters(12));
     }
     return parent::save();
 }
 public function save()
 {
     if ($this->getEngineClassName() === null) {
         throw new Exception(pht('Engine class is null.'));
     }
     // Instantiate the engine to make sure it's valid.
     $this->newEngine();
     $serial = $this->getEngineClassName() . serialize($this->parameters);
     $this->queryKey = PhabricatorHash::digestForIndex($serial);
     return parent::save();
 }