Previous Page
_setCols()

Solar_Sql_Model_Related_HasOne
_setForeignClass()

Next Page
_setForeignModel()

_setForeignClass()

protected void _setForeignClass ( array $opts )

Sets the base name for the foreign class; assumes the related name is is singular and inflects it to plural.

Inherited from Solar_Sql_Model_Related.

Parameters

  • (array) $opts: The user-defined relationship options.

Returns

  • (void)

Description

Sets the base name for the foreign class; assumes the related name is is singular and inflects it to plural.