|
Previous Page |
Solar_Sql_Model_Related_HasMany |
Next Page |
Methods
Public
__construct()- Constructor.
__destruct()- Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
apiVersion()- Reports the API version for this class.
dump()- Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
getModel()- Returns the related model instance.
load()- Loads this relationship object with user-defined characteristics (options), and corrects them as needed.
locale()- Looks up class-specific locale strings based on a key.
newSelect()- Creates a new selection object for records on this relationship.
setNativeModel()- Sets the native (origin) model instance.
toArray()- Returns the relation characteristics as an array.
Protected
_exception()- Convenience method for returning exceptions with localized text.
_fixRelatedCol()- Fixes the related column names in the user-defined options in place.
_modSelect()- Special-case modification for selections of has-many-through records.
_setCols()- Sets the foreign columns to be selected based on user-defined relationship options.
_setForeignModel()- Sets the foreign model instance based on user-defined relationship options.
_setRelated()- A support method for _fixRelated() to handle has-many relationships.
_setRelatedThrough()- A support method for _fixRelatedHasMany() to handle "through" relationships.
_setSelect()- Sets additional selection clauses ('where', 'having', 'group') for related records based on user-defined relationship options.
_setType()- Sets the relationship type.
Private
None.