Mvc\Model::getSource

public getSource () Returns table name mapped in the model

Mvc\Model::getWriteConnection

public getWriteConnection () Gets the connection used to write data to the model

Mvc\Model::getSnapshotData

public getSnapshotData () Returns the internal snapshot data

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::getModelsManager

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

Mvc\Model::getModelsMetaData

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

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::fireEventCancel

public fireEventCancel (mixed $eventName) Fires an event, implicitly calls behaviors and listeners in the events manager are notified This method stops if one of the callbacks/listeners returns boolean false

Mvc\Model::getDirtyState

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