lithium\data\Source::relationship PHP Method

relationship() abstract public method

Defines or modifies the default settings of a relationship between two models.
abstract public relationship ( $class, $type, $name, array $options = [] ) : array
$class the primary model of the relationship
$type the type of the relationship (hasMany, hasOne, belongsTo)
$name the name of the relationship
$options array relationship options
return array Returns an array containing the configuration for a model relationship.
    public abstract function relationship($class, $type, $name, array $options = array());