1
0
mirror of synced 2025-01-18 22:41:43 +03:00

#615 - assignment alignment

This commit is contained in:
Marco Pivetta 2014-10-19 17:08:33 +02:00
parent 109b0444f5
commit a4e9c235f8

View File

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