コード例 #1
0
 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();
 }
コード例 #4
0
 public function save()
 {
     if (!$this->getMailKey()) {
         $this->mailKey = sha1(Filesystem::readRandomBytes(20));
     }
     return parent::save();
 }