Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.1, 1.2.2
-
Fix Version/s: None
-
Component/s: Query
-
Labels:None
-
Environment:I've witnessed the problem in Doctrine 1.2.2 and 1.2.1
Description
The following code fails
This doesn't work
Doctrine_Query::create()
->select('Table t1')
->innerJoin('f1.Foreign2 f2 WITH f1.field = 2')
->innerJoin('t1.Foreign1 f1')
Doctrine seems only to be happy when we change the order of the inner joins
This works
Doctrine_Query::create()
->select('Table t1')
->innerJoin('t1.Foreign1 f1')
->innerJoin('f1.Foreign2 f2 WITH f1.field = 2')
fixed typo