src/Titon/Model/Model.php
public function getRelation($alias) {
        if ($this->hasRelation($alias)) {
            return $this->_relations[$alias];
        }

        throw new MissingRelationException(sprintf('Repository relation %s does not exist', $alias));
    }
public function getRelation($alias) {
        if ($this->hasRelation($alias)) {
            return $this->_relations[$alias];
        }

        throw new MissingRelationException(sprintf('Repository relation %s does not exist', $alias));
    }
public function getRelation ( $ alias ) { if ( $ this -> hasRelation ( $ alias ) ) { return $ this -> _relations [ $ alias ] ; } throw new MissingRelationException ( sprintf ( 'Repository relation %s does not exist' , $ alias ) ) ; }
Return a relation by alias.

@param string $alias
@return \Titon\Model\Relation
@throws \Titon\Model\Exception\MissingRelationException
Return a relation by alias .