-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathjoin-deep.php
38 lines (36 loc) · 1.32 KB
/
join-deep.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
declare(strict_types=1);
// all posts whose author has written at least one post whose title contains "foo"
return [
'SELECT post1, user1, posts1 FROM GraphQLTests\Doctrine\Blog\Model\Post post1 INNER JOIN post1.user user1 INNER JOIN user1.posts posts1 WHERE posts1.title LIKE :filter1',
GraphQLTests\Doctrine\Blog\Model\Post::class,
[
'groups' => [
[
'groupLogic' => 'AND',
'conditionsLogic' => 'AND',
'joins' => [
'user' => [
'type' => 'innerJoin',
'joins' => [
'posts' => [
'type' => 'innerJoin',
'conditions' => [
[
'title' => [
'like' => [
'value' => '%foo%',
'not' => false,
],
],
],
],
],
],
],
],
],
],
],
[],
];