Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Component/s: Documentation
-
Labels:None
-
Environment:Doctrine 1.2 documentation
Description
http://www.doctrine-project.org/documentation/manual/1_2/en/dql-doctrine-query-language
Finding all articles which don't have readers:
// test.php
// ...
$q = Doctrine_Query::create()
->select('a.id')
->from('Article a')
->where('NOT EXISTS (SELECT r.id FROM ReaderLog r WHERE r.article_id = a.id));
echo $q->getSqlQuery();
There is missing apostrophe at the end of the where line.