Previous Page
_hasMany()

Solar_Model_Tags
_hasOne()

Next Page
_setCollectionPagerInfo()

_hasOne()

protected void _hasOne ( string $name, array $opts default NULL )

Adds a named has-one 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-one relationship.