public function getRelation($relationName) {
        $relationInstance = null;
        if (isset($this->relations[$relationName])) {
            $relationInstance = $this->relations[$relationName];
        }
        return $relationInstance;
    }
public function getRelation($relationName) {
        $relationInstance = null;
        if (isset($this->relations[$relationName])) {
            $relationInstance = $this->relations[$relationName];
        }
        return $relationInstance;
    }
public function getRelation ( $ relationName ) { $ relationInstance = null ; if ( isset ( $ this -> relations [ $ relationName ] ) ) { $ relationInstance = $ this -> relations [ $ relationName ] ; } return $ relationInstance ; }
Get a relation bby its name.
@param string $relationName
@return Relation
Get a relation bby its name .