public function getRelationship($modelName, $navigationName)
    {
        $modelName = $this->getModelClass($modelName);

        if (!isset($this->relationships[$modelName])) {
            return null;
        }

        if (!isset($this->relationships[$modelName][$navigationName])) {
            return null;
        }

        return $this->relationships[$modelName][$navigationName];
    }
public function getRelationship($modelName, $navigationName)
    {
        $modelName = $this->getModelClass($modelName);

        if (!isset($this->relationships[$modelName])) {
            return null;
        }

        if (!isset($this->relationships[$modelName][$navigationName])) {
            return null;
        }

        return $this->relationships[$modelName][$navigationName];
    }
public function getRelationship ( $ modelName , $ navigationName ) { $ modelName = $ this -> getModelClass ( $ modelName ) ; if ( ! isset ( $ this -> relationships [ $ modelName ] ) ) { return null ; } if ( ! isset ( $ this -> relationships [ $ modelName ] [ $ navigationName ] ) ) { return null ; } return $ this -> relationships [ $ modelName ] [ $ navigationName ] ; }
Finds and returns a relationship object on a model matching a given navigation name.

If no such relationship can be found null is returned.

@param  $modelName
@param  $navigationName
@return null|Relationship
Finds and returns a relationship object on a model matching a given navigation name .