1
0
mirror of synced 2025-01-18 14:31:40 +03:00

[2.0][DDC-229] Added coverage to reported issue.

This commit is contained in:
guilhermeblanco 2009-12-27 18:46:53 +00:00
parent 262855a66c
commit b4b64b1ee9

View File

@ -367,6 +367,16 @@ class LanguageRecognitionTest extends \Doctrine\Tests\OrmTestCase
$this->assertValidDql('SELECT b FROM Doctrine\Tests\Models\Generic\BooleanModel b WHERE b.booleanField = true');
}
public function testSubqueryInSelectExpression()
{
$this->assertValidDql('select u, (select max(p.phonenumber) from Doctrine\Tests\Models\CMS\CmsPhonenumber p) maxId from Doctrine\Tests\Models\CMS\CmsUser u');
}
public function testUsageOfQComponentOutsideSubquery()
{
$this->assertInvalidDql('select u, (select max(p.phonenumber) from Doctrine\Tests\Models\CMS\CmsPhonenumber p) maxId from Doctrine\Tests\Models\CMS\CmsUser u WHERE p.user = ?1');
}
/**
* This checks for invalid attempt to hydrate a proxy. It should throw an exception
*