doctrine / doctrine/phpcr-odm

make it easier to query multiple documents without a join

Open
#705 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
181
Forks
102
PR merge metrics
No merged PRs in 30d

Description

Building a query like the following:

```
SELECT * FROM [nt:unstructured] AS a
WHERE (
[phpcr:class] = 'AppBundle\Document\Article’ OR
[phpcr:class] = 'AppBundle\Document\Video’ OR
[phpcr:class] = 'AppBundle\Document\Crew’
)
AND
(
a.tags LIKE '%tag1%’ OR
a.tags LIKE '%tag2%’ OR
a.tags LIKE '%tag3%’
)
```

Maybe we could introduce a new method `$from->documents()` to be able to define that the `[phpcr:class]` filtering should be done on a set of documents?

wdyt @dantleech ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.