1
0
mirror of synced 2025-01-31 04:21:44 +03:00

#615 - Removing unused assignment

This commit is contained in:
Marco Pivetta 2014-10-19 17:24:07 +02:00
parent 264cd8ee11
commit b989175754

View File

@ -291,8 +291,8 @@ class SqlWalker implements TreeWalker
$tableName .= ($dqlAlias) ? '@[' . $dqlAlias . ']' : ''; $tableName .= ($dqlAlias) ? '@[' . $dqlAlias . ']' : '';
if ( ! isset($this->tableAliasMap[$tableName])) { if ( ! isset($this->tableAliasMap[$tableName])) {
$tablePrefixAlias = preg_match('/[a-z]/i', $tableName[0]) ? strtolower($tableName[0]) : 't'; $this->tableAliasMap[$tableName] = (preg_match('/[a-z]/i', $tableName[0]) ? strtolower($tableName[0]) : 't')
$this->tableAliasMap[$tableName] = $tablePrefixAlias . $this->tableAliasCounter++ . '_'; . $this->tableAliasCounter++ . '_';
} }
return $this->tableAliasMap[$tableName]; return $this->tableAliasMap[$tableName];