#615 - Removing unused assignment
This commit is contained in:
parent
264cd8ee11
commit
b989175754
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue