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. |