We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
In
1 parent e6ad0c6 commit 18c4c93Copy full SHA for 18c4c93
3 files changed
src/DQLQueryBuilder.php
@@ -12,6 +12,7 @@
12
use Yiisoft\Db\QueryBuilder\Condition\In;
13
use Yiisoft\Db\QueryBuilder\Condition\Like;
14
use Yiisoft\Db\QueryBuilder\Condition\JsonOverlaps;
15
+use Yiisoft\Db\QueryBuilder\Condition\NotIn;
16
use Yiisoft\Db\Sqlite\Builder\InBuilder;
17
use Yiisoft\Db\Sqlite\Builder\JsonOverlapsBuilder;
18
use Yiisoft\Db\Sqlite\Builder\LikeBuilder;
@@ -138,6 +139,7 @@ protected function defaultExpressionBuilders(): array
138
139
JsonOverlaps::class => JsonOverlapsBuilder::class,
140
Like::class => LikeBuilder::class,
141
In::class => InBuilder::class,
142
+ NotIn::class => InBuilder::class,
143
];
144
}
145
tests/Builder/InBuilderTest.php
@@ -23,7 +23,6 @@ public function testBuildSubqueryInCondition(): void
23
$db = $this->getConnection();
24
$inCondition = new In(
25
['id'],
26
- 'in',
27
(new Query($db))->select('id')->from('users')->where(['active' => 1]),
28
);
29
tests/Provider/QueryBuilderProvider.php
@@ -73,17 +73,17 @@ public static function buildCondition(): array
73
[':qp0' => 1, ':qp1' => 'foo', ':qp2' => 2, ':qp3' => 'bar'],
74
],
75
'inCondition-custom-3' => [
76
- new In(['id', 'name'], 'in', [['id' => 1]]),
+ new In(['id', 'name'], [['id' => 1]]),
77
'(([[id]] = :qp0 AND [[name]] IS NULL))',
78
[':qp0' => 1],
79
80
'inCondition-custom-4' => [
81
- new In(['id', 'name'], 'in', [['name' => 'oy']]),
+ new In(['id', 'name'], [['name' => 'oy']]),
82
'(([[id]] IS NULL AND [[name]] = :qp0))',
83
[':qp0' => 'oy'],
84
85
'inCondition-custom-5' => [
86
- new In(['id', 'name'], 'in', [['id' => 1, 'name' => 'oy']]),
+ new In(['id', 'name'], [['id' => 1, 'name' => 'oy']]),
87
'(([[id]] = :qp0 AND [[name]] = :qp1))',
88
[':qp0' => 1, ':qp1' => 'oy'],
89
0 commit comments