public function getRelationship($key)
    {
        if (isset($this->relationships[$key])) {
            return $this->relationships[$key];
        }
        return null;
    }
public function getRelationship($key)
    {
        if (isset($this->relationships[$key])) {
            return $this->relationships[$key];
        }
        return null;
    }
public function getRelationship ( $ key ) { if ( isset ( $ this -> relationships [ $ key ] ) ) { return $ this -> relationships [ $ key ] ; } return null ; }
Gets a relationship from this entity.
Returns null if the relationship doesn't exist.

@param   string  $key
@return  Relationship|null
Gets a relationship from this entity . Returns null if the relationship doesn t exist .