Skip to main content
Version: Fegg 4.x

Model::erase

Execute Physical Delete the record by specified primary ID

Description​

public void Model::erase( mixed $id )

Arguments​

NameData typeDefaultRemarks
$idmixedErasing target Primary ID

Example​

Controller
$model = new Model(false, array(
'table' => 'cms_news',
'id' => 'news_id',
'visible' => 'visible',
));

$model->erase(1);