Solar_Sql_Model::_belongsTo()

protected void Solar_Sql_Model::_belongsTo ( string $name , array $opts = NULL )

Adds a named belongs-to relationship.

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 belongs-to relationship.



Local