Previous Page
Properties

Solar_Sql_Model_Related_BelongsTo
Methods

Next Page
__construct()

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()
Modifies the base select statement for the relationship type.
_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 belongs-to 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.