Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.0, 1.2.1
-
Fix Version/s: 1.2.2
-
Component/s: None
-
Labels:None
Description
As I understand, Doctrine_Connection::query() method is intended to execute DQL queries using precisely this connection.
But here is the code:
894 public function query($query, array $params = array(), $hydrationMode = null) 895 { 896 $parser = Doctrine_Query::create(); 897 $res = $parser->query($query, $params, $hydrationMode); 898 $parser->free(); 899 900 return $res; 901 }
Doctrine_Query::create() statement will create a query that is using a default connection, not the current one.
Attached proposed patch.