[DDC-1122] Added coverage for bug report.
This commit is contained in:
parent
8e3fdc5adc
commit
1e9e2de737
1 changed files with 14 additions and 0 deletions
|
@ -487,4 +487,18 @@ class QueryTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||||
|
|
||||||
$this->assertEquals(2, count($users));
|
$this->assertEquals(2, count($users));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testQueryBuilderWithStringWhereClauseContainingOrAndConditionalPrimary()
|
||||||
|
{
|
||||||
|
$qb = $this->_em->createQueryBuilder();
|
||||||
|
$qb->select('u')
|
||||||
|
->from('Doctrine\Tests\Models\CMS\CmsUser', 'u')
|
||||||
|
->innerJoin('u.articles', 'a')
|
||||||
|
->where('(u.id = 0) OR (u.id IS NULL)');
|
||||||
|
|
||||||
|
$query = $qb->getQuery();
|
||||||
|
$users = $query->execute();
|
||||||
|
|
||||||
|
$this->assertEquals(0, count($users));
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue