Previous Page
_addFilter()

Solar_Sql_Model
_addRelated()

Next Page
_belongsTo()

_addRelated()

protected void _addRelated ( string $name, string $type, array $opts )

Support method for adding relations.

Parameters

  • (string) $name: The relationship name, which will double as a property when records are fetched from the model.
  • (string) $type: The relationship type.
  • (array) $opts: Additional options for the relationship.

Returns

  • (void)

Description

Support method for adding relations.