Mvc\Model::getSchema

public getSchema () Returns schema name where table mapped is located

Mvc\Model::getRelated

public Phalcon\Mvc\Model\ResultsetInterface getRelated (string $alias, [array $arguments]) Returns related records based on defined relations

Mvc\Model::getReadConnectionService

public getReadConnectionService () Returns the DependencyInjection connection service name used to read data related the model

Mvc\Model::getReadConnection

public getReadConnection () Gets the connection used to read data for the model

Mvc\Model::getOperationMade

public getOperationMade () Returns the type of the latest operation performed by the ORM Returns one of the OP_* class constants

Mvc\Model::getModelsMetaData

public getModelsMetaData () Returns the models meta-data service related to the entity instance

Mvc\Model::getModelsManager

public getModelsManager () Returns the models manager related to the entity instance

Mvc\Model::getMessages

public getMessages ([mixed $filter]) Returns array of validation messages $robot = new Robots(); $robot->type = 'mechanical'; $robot->name = 'Astro Boy'; $robot->year = 1952; if ($robot->save() == false) { echo "Umh, We can't store robots right now "; foreach ($robot->getMessages() as $message) { echo $message; } } else { echo "Great, a new robot was saved successfully!"; }

Mvc\Model::getDirtyState

public getDirtyState () Returns one of the DIRTY_STATE_* constants telling if the record exists in the database or not

Mvc\Model::getDI

public getDI () Returns the dependency injection container