Mvc\Model::toArray

public array toArray ([array $columns]) Returns the instance as an array representation print_r($robot->toArray());

Mvc\Model::sum

public static mixed sum ([array $parameters]) Allows to calculate a sum on a column that match the specified conditions //How much are all robots? $sum = Robots::sum(array('column' => 'price')); echo "The total price of robots is ", $sum, "\n"; //How much are mechanical robots? $sum = Robots::sum(array("type = 'mechanical'", 'column' => 'price')); echo "The total price of mechanical robots is ", $sum, "\n";

Mvc\Model::skipOperation

public skipOperation (mixed $skip) Skips the current operation forcing a success state

Mvc\Model::setWriteConnectionService

public setWriteConnectionService (mixed $connectionService) Sets the DependencyInjection connection service name used to write data

Mvc\Model::setup

public static setup (array $options) Enables/disables options in the ORM

Mvc\Model::setTransaction

public setTransaction (Phalcon\Mvc\Model\TransactionInterface $transaction) Sets a transaction related to the Model instance use Phalcon\Mvc\Model\Transaction\Manager as TxManager; use Phalcon\Mvc\Model\Transaction\Failed as TxFailed; try { $txManager = new TxManager(); $transaction = $txManager->get(); $robot = new Robots(); $robot->setTransaction($transaction); $robot->name = 'WALL·E'; $robot->created_at = date('Y-m-d'); if ($robot->save() == false) { $trans

Mvc\Model::setSnapshotData

public setSnapshotData (array $data, [array $columnMap]) Sets the record’s snapshot data. This method is used internally to set snapshot data when the model was set up to keep snapshot data

Mvc\Model::setReadConnectionService

public setReadConnectionService (mixed $connectionService) Sets the DependencyInjection connection service name used to read data

Mvc\Model::setDirtyState

public setDirtyState (mixed $dirtyState) Sets the dirty state of the object using one of the DIRTY_STATE_* constants

Mvc\Model::setDI

public setDI (Phalcon\DiInterface $dependencyInjector) Sets the dependency injection container