Doctrine Projecthttp://www.doctrine-project.org/jira
This file is an XML representation of an issueen-us6.2.3626015-04-2014[DC-917] Doctrine take wrong connctionhttp://www.doctrine-project.org/jira/browse/DC-917
Doctrine 1<p>I have problems with different connection<br/>
i am using doctrine with symfony, and i work with 2 connections<br/>
in base class i have bind to my connection</p>
<p>Doctrine_Manager::getInstance()-&gt;bindComponent('Datasource', 'doctrine');</p>
<p>symfony generate me </p>
<p>$this-&gt;datasources = Doctrine_Core::getTable('datasource')<br/>
-&gt;createQuery('a')<br/>
-&gt;execute();</p>
<p>and when i execute it show me error error that can find this table but it take wrong connection</p>
<p>by test i tried to add bind component as datasource (first is lower character and it works pretty cool)</p>
<p>then i change getTable('datasource') =&gt; getTable('Datasource') but it doesn't work<br/>
then i have added <br/>
test function to my datasource table </p>
<p>public static function test()</p>
{
return Doctrine_Query::create()-&gt;from("Datasource")-&gt;execute();
}
<p>and it works.</p>DC-917Doctrine take wrong connctionBugMajorOpenUnresolvedJonathan H. WageVolodymyrFri, 5 Nov 2010 04:45:12 +0000Fri, 5 Nov 2010 04:45:12 +0000Connection00