src/Database/Kernel.php
/**
	 * Sets whether database connections should run in a validation mode. When true, all queries sent to databases will
	 * be accepted and logged as normal, but the queries will not fully execute. Instead, they will be compiled using
	 * prepared statements (when supported) to check for syntax errors.
	 *
	 * If a boolean is not supplied, returns the current state.
	 *
	 * @param bool|null $enabled
	 * @return bool
	 */
Sets whether database connections should run in a validation mode. When true, all queries sent to databases will
be accepted and logged as normal, but the queries will not fully execute. Instead, they will be compiled using
prepared statements (when supported) to check for syntax errors.

If a boolean is not supplied, returns the current state.

@param bool|null $enabled
@return bool
Sets whether database connections should run in a validation mode . When true all queries sent to databases will be accepted and logged as normal but the queries will not fully execute . Instead they will be compiled using prepared statements ( when supported ) to check for syntax errors . If a boolean is not supplied returns the current state . @param bool|null $enabled @return bool
public function validationMode($enabled = null) {
		if (is_null($enabled)) {
			return $this->validationEnabled;
		}
		if ($enabled && $this->sandboxEnabled) {
			$this->sandboxEnabled = false;
		}
		return $this->validationEnabled = $enabled;
	}
public function validationMode ( $ enabled = null ) { if ( is_null ( $ enabled ) ) { return $ this -> validationEnabled ; } if ( $ enabled && $ this -> sandboxEnabled ) { $ this -> sandboxEnabled = false ; } return $ this -> validationEnabled = $ enabled ; }
Sets whether database connections should run in a validation mode.
Sets whether database connections should run in a validation mode .