#615 - Removing unused assignment
This commit is contained in:
parent
264cd8ee11
commit
b989175754
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user