lib/Doctrine/ORM/Query/SqlWalker.php
public function setSQLTableAlias($tableName, $alias, $dqlAlias = '')
    {
        $tableName .= $dqlAlias ? '@[' . $dqlAlias . ']' : '';

        $this->tableAliasMap[$tableName] = $alias;

        return $alias;
    }
public function setSQLTableAlias($tableName, $alias, $dqlAlias = '')
    {
        $tableName .= $dqlAlias ? '@[' . $dqlAlias . ']' : '';

        $this->tableAliasMap[$tableName] = $alias;

        return $alias;
    }
public function setSQLTableAlias ( $ tableName , $ alias , $ dqlAlias = '' ) { $ tableName .= $ dqlAlias ? '@[' . $ dqlAlias . ']' : '' ; $ this -> tableAliasMap [ $ tableName ] = $ alias ; return $ alias ; }
Forces the SqlWalker to use a specific alias for a table name, rather than
generating an alias on its own.

@param string $tableName
@param string $alias
@param string $dqlAlias

@return string
Forces the SqlWalker to use a specific alias for a table name rather than generating an alias on its own .