Fix for new tests.
This commit is contained in:
parent
21e0bd3ded
commit
7407fefee2
@ -57,7 +57,7 @@ class Doctrine_ClassMetadata_Factory
|
|||||||
* @return Doctrine_Metadata
|
* @return Doctrine_Metadata
|
||||||
*/
|
*/
|
||||||
public function getMetadataFor($className)
|
public function getMetadataFor($className)
|
||||||
{
|
{
|
||||||
if (isset($this->_loadedMetadata[$className])) {
|
if (isset($this->_loadedMetadata[$className])) {
|
||||||
return $this->_loadedMetadata[$className];
|
return $this->_loadedMetadata[$className];
|
||||||
}
|
}
|
||||||
|
@ -236,8 +236,10 @@ class Doctrine_Formatter extends Doctrine_Connection_Module
|
|||||||
* @return string formatted table name
|
* @return string formatted table name
|
||||||
*/
|
*/
|
||||||
public function getTableName($table)
|
public function getTableName($table)
|
||||||
{
|
{
|
||||||
|
return $table;
|
||||||
|
/*
|
||||||
return sprintf($this->conn->getAttribute(Doctrine::ATTR_TBLNAME_FORMAT),
|
return sprintf($this->conn->getAttribute(Doctrine::ATTR_TBLNAME_FORMAT),
|
||||||
$table);
|
$table);*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -125,12 +125,8 @@ class Doctrine_Query_Production_VariableDeclaration extends Doctrine_Query_Produ
|
|||||||
$queryComponent = $parserResult->getQueryComponent($this->_componentAlias);
|
$queryComponent = $parserResult->getQueryComponent($this->_componentAlias);
|
||||||
|
|
||||||
// Retrieving connection
|
// Retrieving connection
|
||||||
$conn = $this->_parser->getSqlBuilder()->getConnection();
|
$manager = Doctrine_EntityManager::getManager();
|
||||||
$manager = Doctrine_Manager::getInstance();
|
$conn = $manager->getConnection();
|
||||||
|
|
||||||
if ($manager->hasConnectionForComponent($this->_componentName)) {
|
|
||||||
$conn = $manager->getConnectionForComponent($this->_componentName);
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "Query Component Table Name: " . var_export($queryComponent['metadata']->getTableName(), true) . "\n";
|
echo "Query Component Table Name: " . var_export($queryComponent['metadata']->getTableName(), true) . "\n";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user