public function save()
 {
     $this->openTransaction();
     $ret = parent::save();
     foreach ($this->unsavedChangesets as $changeset) {
         $changeset->setDiffID($this->getID());
         $changeset->save();
     }
     $this->saveTransaction();
     return $ret;
 }
예제 #2
0
 public function save()
 {
     $this->openTransaction();
     $ret = parent::save();
     foreach ($this->unsavedHunks as $hunk) {
         $hunk->setChangesetID($this->getID());
         $hunk->save();
     }
     $this->saveTransaction();
     return $ret;
 }
예제 #3
0
 public function save()
 {
     if (!$this->getMailKey()) {
         $this->mailKey = Filesystem::readRandomCharacters(40);
     }
     return parent::save();
 }
 public function save()
 {
     if (!$this->getMailKey()) {
         $this->mailKey = sha1(Filesystem::readRandomBytes(20));
     }
     return parent::save();
 }