Esempio n. 1
0
 /**
  * Because records are cached, we need to remove the record from the cache when it is saved,
  * so that loading the record again returns the updated record, not the one in the cache.
  *
  * @inheritdoc
  */
 public function save(array $properties, $key = null, array $options = [])
 {
     if ($key) {
         $this->activerecord_cache->eliminate($key);
     }
     return parent::save($properties, $key, $options);
 }