Exemple #1
0
 public function save()
 {
     model_cache::clear();
     $result = parent::save();
     $this->original = $this->object;
     return $result;
 }
Exemple #2
0
 public function save()
 {
     model_cache::clear($this->object_name, $this->{$this->primary_key}, $this->primary_key);
     return parent::save();
 }
Exemple #3
0
 public function save()
 {
     model_cache::clear();
     return parent::save();
 }
Exemple #4
0
 /**
  * Save the store id
  * @developer Brandon Hansen
  * @date Oct 18, 2010
  */
 public function save()
 {
     // Set the store id
     if (array_key_exists('store_id', $this->table_columns)) {
         $this->store_id = Kohana::config('store.id');
     }
     // Set the created at on new entries
     if (array_key_exists('created_at', $this->table_columns) && !$this->loaded) {
         $this->created_at = date('Y-m-d H:i:s');
     }
     // Update the "updated_at" column
     if (array_key_exists('updated_at', $this->table_columns)) {
         $this->updated_at = date('Y-m-d H:i:s');
     }
     parent::save();
 }