Skip to content

Commit 7c0d653

Browse files
committed
feat: update doctrine-components
1 parent 5f3516a commit 7c0d653

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": ">=7.4",
10-
"adt/doctrine-components": "^2.3",
10+
"adt/doctrine-components": "^2.8",
1111
"ublaboo/datagrid": "^6.0",
1212
"nette/di": "^2.4|^3.0"
1313
},

src/QueryObjectDataSource.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace ADT\QueryObjectDataSource;
44

5+
use ADT\DoctrineComponents\QueryObjectByMode;
56
use Ublaboo\DataGrid\Filter\Filter;
67
use Ublaboo\DataGrid\Filter\FilterDate;
78
use Ublaboo\DataGrid\Filter\FilterDateRange;
@@ -144,13 +145,13 @@ public function filter(array $filters): void
144145
$this->queryObject->by(
145146
$by,
146147
$value,
147-
false);
148+
QueryObjectByMode::CONTAINS);
148149
}
149150
elseif (!$filter instanceof FilterDateRange) {
150151
$this->queryObject->by(
151152
$filter instanceof OneColumnFilter ? $filter->getColumn() : $filter->getKey(),
152153
$filter->getValue(),
153-
true
154+
QueryObjectByMode::STRICT
154155
);
155156
}
156157
}

0 commit comments

Comments
 (0)