Solar_Sql_Model_Related_HasMany::_fixForeignKey()
protected
void
Solar_Sql_Model_Related_HasMany::_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'.
Inherited from Solar_Sql_Model_Related_ToMany.
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'.