Affects Version/s: None
Fix Version/s: None
following will lead to an error:
->leftJoin('alias.RelatedTable alias2 WITH .....')
The problem is the additional whitespace behind alias2.
On line 1682 in Doctrine_Query class file:
$tmp = explode(' ', $path);
will create an array of 3 elements where the last one is empty but will be used as empty alias mapping after foreach from line 1698.