implements Phalcon\Mvc\Model\RelationInterface
This class represents a relationship between two models
Phalcon\Mvc\Model\Relation constructor
Sets the intermediate model data for has-*-through relations
Returns the relation type
Returns the referenced model
Returns the fields
Returns the referenced fields
Returns the options
Returns an option by the specified name If the option doesn’t exist null is returned
Check whether the relation act as a foreign key
Returns the foreign key configuration
Returns parameters that must be always used when the related records are obtained
Check whether the relation is a ‘many-to-many’ relation or not
Check if records returned by getting belongs-to/has-many are implicitly cached during the current request
Gets the intermediate fields for has-*-through relations
Gets the intermediate model for has-*-through relations
Gets the intermediate referenced fields for has-*-through relations
© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Mvc_Model_Relation.html