public function getRelation($name)
    {
        if (!array_key_exists($name, $this->getRelations())) {
            throw new PropelException('Calling getRelation() on an unknown relation, ' . $name);
        }

        return $this->relations[$name];
    }
public function getRelation($name)
    {
        if (!array_key_exists($name, $this->getRelations())) {
            throw new PropelException('Calling getRelation() on an unknown relation, ' . $name);
        }

        return $this->relations[$name];
    }
public function getRelation ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> getRelations ( ) ) ) { throw new PropelException ( 'Calling getRelation() on an unknown relation, ' . $ name ) ; } return $ this -> relations [ $ name ] ; }
Gets a RelationMap of the table by relation name
This method will build the relations if they are not built yet

@param String $name The relation name

@return RelationMap     The relation object
@throws PropelException When called on an inexistent relation
Gets a RelationMap of the table by relation name This method will build the relations if they are not built yet