lithium\data\Source::relationship()
Defines or modifies the default settings of a relationship between two models.
Parameters
-
$class
theprimary model of the relationship
-
$type
thetype of the relationship (hasMany, hasOne, belongsTo)
-
$name
thename of the relationship
-
array
$optionsrelationship options
Returns
arrayReturns an array containing the configuration for a model relationship.
Source
abstract public function relationship($class, $type, $name, array $options = array());