TwistPHP Documentation

commit

File path: dist/twist/Core/Models/Database/Record.model.php
Namespace: Twist\Core\Models\Database
Extends:

commitCommit the updated record to the database table. False is returned if the query fails, a successful insert returns insertID, a successful update returns numAffectedRows or true if numAffectedRows is 0.

Parameters

Name Type Description
[$blInsert = false]booleann/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$blInsert false;

//Call the function commit with the example vars
$resRecord = new \Twist\Core\Models\Database\Record();
$resRecord -> commit($blInsert);