public function resolveAlias(string $alias)
    {
        if (isset($this->aliases[$alias]))
            return $this->aliases[$alias];

        if (empty($this->parent_scope))
            return null;

        return $this->parent_scope->resolveAlias($alias);
    }
public function resolveAlias(string $alias)
    {
        if (isset($this->aliases[$alias]))
            return $this->aliases[$alias];

        if (empty($this->parent_scope))
            return null;

        return $this->parent_scope->resolveAlias($alias);
    }
public function resolveAlias ( string $ alias ) { if ( isset ( $ this -> aliases [ $ alias ] ) ) return $ this -> aliases [ $ alias ] ; if ( empty ( $ this -> parent_scope ) ) return null ; return $ this -> parent_scope -> resolveAlias ( $ alias ) ; }
Find a table by its alias
@param string $alias The alias to find
@return TableClause The table the alias refers to - can be from an outer scope
Find a table by its alias