1
0
mirror of synced 2025-01-06 00:57:10 +03:00

Fix for new tests.

This commit is contained in:
romanb 2008-05-24 19:56:35 +00:00
parent 21e0bd3ded
commit 7407fefee2
3 changed files with 7 additions and 9 deletions

View File

@ -237,7 +237,9 @@ class Doctrine_Formatter extends Doctrine_Connection_Module
*/
public function getTableName($table)
{
return $table;
/*
return sprintf($this->conn->getAttribute(Doctrine::ATTR_TBLNAME_FORMAT),
$table);
$table);*/
}
}

View File

@ -125,12 +125,8 @@ class Doctrine_Query_Production_VariableDeclaration extends Doctrine_Query_Produ
$queryComponent = $parserResult->getQueryComponent($this->_componentAlias);
// Retrieving connection
$conn = $this->_parser->getSqlBuilder()->getConnection();
$manager = Doctrine_Manager::getInstance();
if ($manager->hasConnectionForComponent($this->_componentName)) {
$conn = $manager->getConnectionForComponent($this->_componentName);
}
$manager = Doctrine_EntityManager::getManager();
$conn = $manager->getConnection();
echo "Query Component Table Name: " . var_export($queryComponent['metadata']->getTableName(), true) . "\n";