本文整理匯總了PHP中waModel::deleteById方法的典型用法代碼示例。如果您正苦於以下問題:PHP waModel::deleteById方法的具體用法?PHP waModel::deleteById怎麽用?PHP waModel::deleteById使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類waModel
的用法示例。
在下文中一共展示了waModel::deleteById方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: deleteById
/**
* @param int|array $value
* @return bool
*/
public function deleteById($value)
{
if ($cache = wa()->getCache()) {
$cache->delete('block_' . $value);
}
return parent::deleteById($value);
}
示例2: delete
/**
* 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: delete
/**
* 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();
}