$hook=newDoctrine_Hook('SELECT u.name FROM User u LEFT JOIN u.Phonenumber p');
...
...
@@ -53,6 +62,7 @@ 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)');
}
publicfunctiontestEqualParserUsesEqualOperator(){
$parser=newDoctrine_Hook_Equal();
...
...
@@ -95,5 +105,6 @@ class Doctrine_Hook_TestCase extends Doctrine_UnitTestCase {
$this->assertEqual($parser->getCondition(),'((m.year > ? AND m.year < ?) OR m.year = ?)');