Model::disabledRegularUseQuery
Skip the automatic queries for good
Description
public self Model::disabledRegularUseQuery()
Skips every automatic query (for every table and for this table, see Configuration) for every later query of this model instance: reads also return rows with valid = 0, and inserts and updates no longer fill created, modified and valid. To skip them for one query only, use unsetRegularUseQuery.
Example
Controller
// A table without valid / created / modified columns
$model = new Model(true, array(
'table' => 'sample_log',
'id' => 'log_id',
));
$model->disabledRegularUseQuery();
$records = $model->all();
$model->insertRow(array('message' => 'Hello'));