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
Check whether the relation act as a foreign key
Returns the foreign key configuration
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–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Mvc_Model_Relation.html