[PHPCR-94] Implement ->iterate on Query object Created: 19/Feb/13 Updated: 19/Feb/13 |
|
| Status: | Open |
| Project: | Doctrine PHPCR |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Daniel Leech | Assignee: | Lukas Kahwe |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | query | ||
| Description |
|
Implement the Query->iterate method which will return an IteratableResultSet as per the ORM. |
[PHPCR-91] getSIngleResult throws ambiguous Exception Created: 19/Feb/13 Updated: 18/Apr/13 |
|
| Status: | Open |
| Project: | Doctrine PHPCR |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Daniel Leech | Assignee: | Lukas Kahwe |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | 1.0, query | ||
| Description |
|
Query->getSingleResult correctly throws an Exception when there are no results (or more than one), but it is an Exception that could also be produced by other things, so not guaranteed to mean that ( |
[PHPCR-86] QueryBuilder QOMFactory access Created: 14/Jan/13 Updated: 15/Jan/13 |
|
| Status: | Open |
| Project: | Doctrine PHPCR |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Documentation | Priority: | Trivial |
| Reporter: | Daniel Bojdo | Assignee: | Lukas Kahwe |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | builder,, qomfactory, query | ||
| Description |
|
There is getQOMFactory method in PHPCR\Util\QOM\QueryBuilder (very useful) but it isn't in Doctrine\ODM\PHPCR\Query\QueryBuilder (it breaks bc). Is it mistake or there is/will be another method to access QOMFactory instance? |
| Comments |
| Comment by Daniel Bojdo [ 15/Jan/13 ] |
|
In fact it's not a bug, there is no docs about DocumentManager methods refactor. |
[DDC-2394] QueryExpressionVisitor has no implementation of Comparison::CONTAINS Created: 08/Apr/13 Updated: 14/Apr/13 Resolved: 14/Apr/13 |
|
| Status: | Resolved |
| Project: | Doctrine 2 - ORM |
| Component/s: | ORM |
| Affects Version/s: | Git Master |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Boris Guéry | Assignee: | Benjamin Eberlei |
| Resolution: | Invalid | Votes: | 0 |
| Labels: | criteria, expression, orm, query | ||
| Environment: |
n/a |
||
| Description |
|
Use case
$criteria = Criteria::create();
$criteria
->andWhere(
$criteria->expr()->contains('r.body', 'foo')
)
;
$entities = $repo->createQueryBuilder()->addCriteria($criteria)->getQuery()->getResult();
Throws the following exception: RuntimeException: Unknown comparison operator: CONTAINS
I except it to properly handle the CONTAINS comparison and result in a LIKE operator. ------- I added a failing test case & a fix there: https://github.com/borisguery/doctrine2/tree/DDC-2394 |
| Comments |
| Comment by Benjamin Eberlei [ 14/Apr/13 ] |
|
This was added in 2.4, you are probably using Collections 1.1 with ORM 2.3, where this occurs. |