public function afterFind() { if ($this->id != $this->name) { $this->name = $this->id; $this->update(array('name')); } return parent::afterFind(); }
public function afterFind() { parent::afterFind(); if ($this->trackingKey === null && self::$autoPopulateFields) { $this->trackingKey = self::getNewTrackingKey(); $this->update(array('trackingKey')); } }
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(); }