PHP Interface Esensi\Model\Contracts\RelatingModelInterface

Author: Daniel LaBarge ([email protected])
Show file Open project: esensi/model

Public Methods

Method Description
getRelationship ( string $name ) : array Return the relationship configurations.
isRelationship ( string $name ) : boolean Return whether the name is a relationship or not.

Method Details

getRelationship() public method

Return the relationship configurations.
public getRelationship ( string $name ) : array
$name string of related model
return array

isRelationship() public method

Return whether the name is a relationship or not.
public isRelationship ( string $name ) : boolean
$name string of related model
return boolean