1
0
mirror of synced 2025-03-22 16:03:49 +03:00

#1277 DDC-3346 DDC-3531 - moved sqlTableAliases into the newly created CachedPersisterContext

This commit is contained in:
Marco Pivetta 2015-01-22 18:10:43 +01:00
parent 2a7f149029
commit ebdfab8f2c

View File

@ -163,13 +163,6 @@ class BasicEntityPersister implements EntityPersister
*/ */
private $insertSql; private $insertSql;
/**
* Map from class names (FQCN) to the corresponding generated SQL table aliases.
*
* @var array
*/
protected $sqlTableAliases = array();
/** /**
* The quote strategy. * The quote strategy.
* *
@ -1462,13 +1455,13 @@ class BasicEntityPersister implements EntityPersister
$className .= '#' . $assocName; $className .= '#' . $assocName;
} }
if (isset($this->sqlTableAliases[$className])) { if (isset($this->cachedPersisterContexts['noLimits']->sqlTableAliases[$className])) {
return $this->sqlTableAliases[$className]; return $this->cachedPersisterContexts['noLimits']->sqlTableAliases[$className];
} }
$tableAlias = 't' . $this->cachedPersisterContexts['noLimits']->sqlAliasCounter++; $tableAlias = 't' . $this->cachedPersisterContexts['noLimits']->sqlAliasCounter++;
$this->sqlTableAliases[$className] = $tableAlias; $this->cachedPersisterContexts['noLimits']->sqlTableAliases[$className] = $tableAlias;
return $tableAlias; return $tableAlias;
} }