Skip to main content
Version: Fegg 5.x

Pdo::disabledRegularUseQuery

Skip the automatic queries for good

Description​

public self Pdo::disabledRegularUseQuery()

Skips every automatic query (for every table and for the table, see Configuration) for every later query of this instance. To skip them for one query only, use unsetRegularUseQuery and unsetRegularUseQueryForTable.

Example​

Controller
$db = new \Fegg\Database\Pdo();
$db->disabledRegularUseQuery();

// Select * From "cms_news" (also the rows with valid = 0)
$rows = $db->select('cms_news')->execute()->all();