メインコンテンツまでスキップ
Version: Fegg 5.x(開発版)

Pdo::disabledRegularUseQuery

Disable automatic append query flag

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();