Model::eraseWhere
Execute Physical Delete the records by specified condition
Description
public void Model::eraseWhere( string $where, array $wh_data )
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$where | string | Erasing condition query | |
$wh_data | array | Erasing condition data |
Example
Controller
$model = new Model(false, array(
'table' => 'cms_news',
'id' => 'news_id',
'visible' => 'visible',
));
$model->eraseWhere($item, $data, 'id = ?', [1]);