/**
  * @param int|array $value
  * @return bool
  */
 public function deleteById($value)
 {
     if ($cache = wa()->getCache()) {
         $cache->delete('block_' . $value);
     }
     return parent::deleteById($value);
 }
예제 #2
0
 /**
  * Delete this record from database.
  * $this is not guaranteed to be accessable via array or field access after deletion.
  */
 public function delete()
 {
     $this->beforeDelete();
     $this->clearPersistent();
     $this->m->deleteById($this->id);
     $this->afterDelete();
     $this->id = null;
 }
예제 #3
0
 /**
  * Delete this record from database.
  * $this is not guaranteed to be accessable via array or field access after deletion.
  */
 public function delete()
 {
     $this->beforeDelete();
     $this->m->deleteById($this->id);
     $this->afterDelete();
     $this->rec_data += $this->persistent->rec_data;
     $this->persistent->clear();
 }