File path: dist/twist/Core/Models/Database/Record.model.php
Namespace: Twist\Core\Models\Database
commit
— Commit 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.
Name | Description |
---|---|
[$blInsert = false] | n/a |
void — No return information has been documented for this function.
<?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);