Pheasant\Schema::relationship PHP Method

relationship() public method

Returns a particular Relationship
public relationship ( $name ) : Relationship
return Relationship
    public function relationship($name)
    {
        if (!isset($this->_rels[$name])) {
            throw new \InvalidArgumentException("Unknown relationship {$name}");
        }
        return $this->_rels[$name];
    }