save() public method

public save ( )
Example #1
0
 /**
  * {@inheritdoc}
  */
 public function save()
 {
     $dataBackup = $this->data;
     $this->data = [static::DATA_FIELD => $dataBackup, static::TAGS_FIELD => iterator_to_array($this->getVersionedTags($this->tags))];
     $result = parent::save();
     $this->data = $dataBackup;
     return $result;
 }