Skip to main content
Version: Fegg 5.x (next)

Model::unsetRegularUseQueryForTable

Skip the automatic queries of the table for the next query

Description​

public self Model::unsetRegularUseQueryForTable()

For the next query only, skips the queries configured for this table (the table section of database_regular_use_query.php, see Configuration). The queries added for every table still apply; see unsetRegularUseQuery.

Example​

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

$records = $model->unsetRegularUseQueryForTable()->all();