public getMessages () Returns validations messages from last save try
public getConnection () Returns the connection related to transaction
public commit () Commits the transaction
public begin () Starts the transaction
implements Phalcon\Mvc\Model\TransactionInterface Source on GitHub Transactions are protective blocks where SQL statements are only permanent if they can all succeed as one atomic action. Phalcon\Transaction is intended to be used with Phalcon_Model_Base. Phalcon Transactions should be created using Phalcon\Transaction\Manager. try { $manager = new \Phalcon\Mvc\Model\Transaction\Manager(); $transaction = $manager->get(); $robot = new Robots(); $robot->setTransaction($transactio
public writeAttribute (string $attribute, mixed $value) Writes an attribute value by its name $robot->writeAttribute('name', 'Rosey');
public array toArray () Returns the instance as an array representation
public setDirtyState (mixed $dirtyState) Set the current object’s state
public mixed readAttribute (string $attribute) Reads an attribute value by its name echo $robot->readAttribute('name');
public offsetUnset (string | int $offset) Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface
Page 98 of 382