/** * @param int|array $value * @return bool */ public function deleteById($value) { if ($cache = wa()->getCache()) { $cache->delete('block_' . $value); } return parent::deleteById($value); }
/** * 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; }
/** * 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(); }