|
Previous Page |
Solar_Model_Tags |
Next Page |
_hasMany()
protected
void
_hasMany (
string $name,
array $opts default NULL
)
Adds a named has-many 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 has-many relationship.
Note that you can get "has-and-belongs-to-many" using "has-many" with a "through" option ("has-many-through").
Local
- Overview
- Constants
- Properties
- Methods
- __call()
- __construct()
- __destruct()
- __get()
- _addFilter()
- _addRelated()
- _belongsTo()
- _createTableAndIndexes()
- _exception()
- _fetchResultSelect()
- _fixCache()
- _fixFilters()
- _fixIndex()
- _fixModelName()
- _fixOrder()
- _fixPropertyCols()
- _fixStack()
- _fixTableCols()
- _fixTableName()
- _hasMany()
- _hasOne()
- _setCollectionPagerInfo()
- _setup()
- apiVersion()
- countPages()
- delete()
- dump()
- fetch()
- fetchAll()
- fetchAllByOwnerHandle()
- fetchAllWithCount()
- fetchArray()
- fetchAssoc()
- fetchCol()
- fetchNew()
- fetchOne()
- fetchPairs()
- fetchValue()
- fixSelectParams()
- free()
- getPaging()
- getRelated()
- insert()
- locale()
- newCollection()
- newRecord()
- newSelect()
- serializeCols()
- setPaging()
- unserializeCols()
- update()