1
0
mirror of synced 2025-01-19 15:01:40 +03:00

test NOT EXISTS expression

This commit is contained in:
Fabio B. Silva 2013-01-18 23:47:31 -02:00
parent 4dcd5a1286
commit 1d42a5385b

View File

@ -119,6 +119,14 @@ class SelectSqlGenerationTest extends \Doctrine\Tests\OrmTestCase
); );
} }
public function testNotExistsExpression()
{
$this->assertSqlGeneration(
'SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE NOT EXISTS (SELECT p.phonenumber FROM Doctrine\Tests\Models\CMS\CmsPhonenumber p WHERE p.phonenumber = 1234)',
'SELECT c0_.id AS id0, c0_.status AS status1, c0_.username AS username2, c0_.name AS name3 FROM cms_users c0_ WHERE NOT EXISTS (SELECT c1_.phonenumber FROM cms_phonenumbers c1_ WHERE c1_.phonenumber = 1234)'
);
}
public function testSupportsSelectForMultipleColumnsOfASingleComponent() public function testSupportsSelectForMultipleColumnsOfASingleComponent()
{ {
$this->assertSqlGeneration( $this->assertSqlGeneration(