예제 #1
0
 public function afterFind()
 {
     if ($this->id != $this->name) {
         $this->name = $this->id;
         $this->update(array('name'));
     }
     return parent::afterFind();
 }
예제 #2
0
파일: Contacts.php 프로젝트: dsyman2/X2CRM
 public function afterFind()
 {
     parent::afterFind();
     if ($this->trackingKey === null && self::$autoPopulateFields) {
         $this->trackingKey = self::getNewTrackingKey();
         $this->update(array('trackingKey'));
     }
 }
예제 #3
0
 public function afterFind()
 {
     if (self::$withActionText && $this->actionText instanceof ActionText) {
         $this->actionDescriptionTemp = $this->actionText->text;
     }
     if ($this->actionMetaData instanceof ActionMetaData) {
         foreach ($this->metaDataTemp as $name => $value) {
             $this->metaDataTemp[$name] = $this->actionMetaData->{$name};
         }
     }
     parent::afterFind();
 }