Mvc\Model\Transaction::getMessages

public getMessages () Returns validations messages from last save try

Mvc\Model\Transaction::getConnection

public getConnection () Returns the connection related to transaction

Mvc\Model\Transaction::commit

public commit () Commits the transaction

Mvc\Model\Transaction::begin

public begin () Starts the transaction

Mvc\Model\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

Mvc\Model\Row::writeAttribute

public writeAttribute (string $attribute, mixed $value) Writes an attribute value by its name $robot->writeAttribute('name', 'Rosey');

Mvc\Model\Row::toArray

public array toArray () Returns the instance as an array representation

Mvc\Model\Row::setDirtyState

public setDirtyState (mixed $dirtyState) Set the current object’s state

Mvc\Model\Row::readAttribute

public mixed readAttribute (string $attribute) Reads an attribute value by its name echo $robot->readAttribute('name');

Mvc\Model\Row::offsetUnset

public offsetUnset (string | int $offset) Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface