Phalcon\Mvc\ModelInterface initializer
Sets a transaction related to the Model instance
Returns table name mapped in the model
Returns schema name where table mapped is located
Sets both read/write connection services
Sets the DependencyInjection connection service used to write data
Sets the DependencyInjection connection service used to read data
Returns DependencyInjection connection service used to read data
Returns DependencyInjection connection service used to write data
Gets internal database connection
Gets internal database connection
Assigns values to a model from an array
Assigns values to a model from an array returning a new model
Assigns values to a model from an array returning a new model
Returns an hydrated result based on the data and the column map
Allows to query a set of records that match the specified conditions
Allows to query the first record that match the specified conditions
Create a criteria for a especific model
Allows to count how many records match the specified conditions
Allows to calculate a summatory on a column that match the specified conditions
Allows to get the maximum value of a column that match the specified conditions
Allows to get the minimum value of a column that match the specified conditions
Allows to calculate the average value on a column matching the specified conditions
Fires an event, implicitly calls behaviors and listeners in the events manager are notified
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
Appends a customized message on the validation process
Check whether validation process has generated any messages
Returns all the validation messages
Inserts or updates a model instance. Returning true on success or false otherwise.
Inserts a model instance. If the instance already exists in the persistance it will throw an exception Returning true on success or false otherwise.
Updates a model instance. If the instance doesn’t exist in the persistance it will throw an exception Returning true on success or false otherwise.
Deletes a model instance. Returning true on success or false otherwise.
Returns the type of the latest operation performed by the ORM Returns one of the OP_* class constants
Refreshes the model attributes re-querying the record from the database
Reads an attribute value by its name
Writes an attribute value by its name
Returns related records based on defined relations
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Mvc_ModelInterface.html