Example #1
0
 public function save()
 {
     if (!$this->mailKey) {
         $this->mailKey = Filesystem::readRandomCharacters(20);
     }
     $result = parent::save();
     return $result;
 }
Example #2
0
 public function save()
 {
     if (!$this->mailKey) {
         $this->mailKey = Filesystem::readRandomCharacters(20);
     }
     $result = parent::save();
     if ($this->projectsNeedUpdate) {
         // If we've changed the project PHIDs for this task, update the link
         // table.
         ManiphestTaskProject::updateTaskProjects($this);
         $this->projectsNeedUpdate = false;
     }
     if ($this->subscribersNeedUpdate) {
         // If we've changed the subscriber PHIDs for this task, update the link
         // table.
         ManiphestTaskSubscriber::updateTaskSubscribers($this);
         $this->subscribersNeedUpdate = false;
     }
     if ($this->auxiliaryDirty) {
         $this->writeAuxiliaryUpdates();
         $this->auxiliaryDirty = array();
     }
     return $result;
 }
Example #3
0
 public function save()
 {
     if (!$this->mailKey) {
         $this->mailKey = Filesystem::readRandomCharacters(20);
     }
     $result = parent::save();
     if ($this->subscribersNeedUpdate) {
         // If we've changed the subscriber PHIDs for this task, update the link
         // table.
         ManiphestTaskSubscriber::updateTaskSubscribers($this);
         $this->subscribersNeedUpdate = false;
     }
     return $result;
 }