#1277 DDC-3346 DDC-3531 - moved sqlTableAliases
into the newly created CachedPersisterContext
This commit is contained in:
parent
2a7f149029
commit
ebdfab8f2c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user