$hook=newDoctrine_Hook('SELECT u.name FROM User u LEFT JOIN u.Phonenumber p');
...
...
@@ -53,9 +62,10 @@ class Doctrine_Hook_TestCase extends Doctrine_UnitTestCase {
$this->assertEqual($hook->getQuery()->getQuery(),'SELECT e.id AS e__id, e.name AS e__name FROM entity e LEFT JOIN phonenumber p ON e.id = p.entity_id WHERE (e.type = 0)');