|
Previous Page |
Solar_Example_Model_Users |
Next Page |
_belongsTo()
protected
void
_belongsTo (
string $name,
array $opts default NULL
)
Adds a named belongs-to relationship.
Inherited from Solar_Sql_Model.
Parameters
- (string)
$name: The relationship name, which will double as a property when records are fetched from the model. - (array)
$opts: Additional options for the relationship.
Returns
- (void)
Description
Adds a named belongs-to relationship.
Local
- Overview
- Constants
- Properties
- Methods
- __call()
- __construct()
- __destruct()
- __get()
- _addFilter()
- _addRelated()
- _belongsTo()
- _createTableAndIndexes()
- _exception()
- _fetchAll()
- _fetchAssoc()
- _fixFilters()
- _fixIndex()
- _fixModelName()
- _fixOrder()
- _fixPropertyCols()
- _fixStack()
- _fixTableCols()
- _fixTableName()
- _hasMany()
- _hasOne()
- _setup()
- apiVersion()
- countPages()
- countPagesRelated()
- delete()
- dump()
- fetch()
- fetchAll()
- fetchAssoc()
- fetchCol()
- fetchNew()
- fetchOne()
- fetchPairs()
- fetchRelatedArray()
- fetchRelatedObject()
- fetchValue()
- fixSelectParams()
- getPaging()
- getRelated()
- insert()
- locale()
- newCollection()
- newRecord()
- newSelect()
- serializeCols()
- setPaging()
- unserializeCols()
- update()