Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Connection
-
Labels:None
Description
I have problems with different connection
i am using doctrine with symfony, and i work with 2 connections
in base class i have bind to my connection
Doctrine_Manager::getInstance()->bindComponent('Datasource', 'doctrine');
symfony generate me
$this->datasources = Doctrine_Core::getTable('datasource')
->createQuery('a')
->execute();
and when i execute it show me error error that can find this table but it take wrong connection
by test i tried to add bind component as datasource (first is lower character and it works pretty cool)
then i change getTable('datasource') => getTable('Datasource') but it doesn't work
then i have added
test function to my datasource table
public static function test()
{ return Doctrine_Query::create()->from("Datasource")->execute(); }and it works.