@@ -7,6 +7,7 @@ class Doctrine_Query_Limit_TestCase extends Doctrine_UnitTestCase {
...
@@ -7,6 +7,7 @@ class Doctrine_Query_Limit_TestCase extends Doctrine_UnitTestCase {
$users=$q->execute();
$users=$q->execute();
$this->assertEqual($users->count(),5);
$this->assertEqual($users->count(),5);
$this->assertEqual($q->getQuery(),"SELECT entity.id AS entity__id, email.id AS email__id, email.address AS email__address FROM entity LEFT JOIN email ON entity.email_id = email.id WHERE (entity.type = 0) LIMIT 5");
}
}
publicfunctiontestLimitWithOneToOneInnerJoin(){
publicfunctiontestLimitWithOneToOneInnerJoin(){
...
@@ -15,6 +16,7 @@ class Doctrine_Query_Limit_TestCase extends Doctrine_UnitTestCase {
...
@@ -15,6 +16,7 @@ class Doctrine_Query_Limit_TestCase extends Doctrine_UnitTestCase {
$users=$q->execute();
$users=$q->execute();
$this->assertEqual($users->count(),5);
$this->assertEqual($users->count(),5);
$this->assertEqual($q->getQuery(),"SELECT entity.id AS entity__id, email.id AS email__id, email.address AS email__address FROM entity INNER JOIN email ON entity.email_id = email.id WHERE (entity.type = 0) LIMIT 5");
}
}
publicfunctiontestLimitWithOneToManyLeftJoin(){
publicfunctiontestLimitWithOneToManyLeftJoin(){
$this->query->from("User(id).Phonenumber");
$this->query->from("User(id).Phonenumber");
...
@@ -98,6 +100,9 @@ class Doctrine_Query_Limit_TestCase extends Doctrine_UnitTestCase {
...
@@ -98,6 +100,9 @@ class Doctrine_Query_Limit_TestCase extends Doctrine_UnitTestCase {