|
Previous Page |
Solar_Sql_Model_Related_HasMany |
Next Page |
_fixForeignKey()
protected
void
_fixForeignKey (
array &$opts
)
Corrects the foreign_key value in the options; uses the native-model table name as singular when a regular has-many, and the foreign- model primary column as-is when a 'has-many through'.
Parameters
- (array)
&$opts: The user-defined relationship options.
Returns
- (void)
Description
Corrects the foreign_key value in the options; uses the native-model table name as singular when a regular has-many, and the foreign- model primary column as-is when a 'has-many through'.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- _exception()
- _fixForeignKey()
- _fixRelatedCol()
- _modSelect()
- _modSelectEager()
- _setCols()
- _setForeignClass()
- _setForeignModel()
- _setRelated()
- _setRelatedThrough()
- _setSelect()
- _setType()
- apiVersion()
- dump()
- fetchArray()
- fetchObject()
- getModel()
- load()
- locale()
- modSelectCountPages()
- modSelectEager()
- newSelect()
- setNativeModel()
- toArray()