Skip to content

Commit

Permalink
replace deprecated dibi::IDENTIFIER with Fluent::Identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
to23mas committed Nov 1, 2024
1 parent 277ca60 commit 6f44dbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/DataSource/DibiFluentDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Contributte\Datagrid\Filter\FilterText;
use Contributte\Datagrid\Utils\DateTimeHelper;
use Contributte\Datagrid\Utils\Sorting;
use dibi;
use Dibi\Fluent;
use Dibi\Helpers;
use ReflectionClass;
Expand Down Expand Up @@ -167,7 +166,7 @@ protected function applyFilterText(FilterText $filter): void
$or = [];

foreach ($condition as $column => $value) {
$column = Helpers::escape($driver, $column, dibi::IDENTIFIER);
$column = Helpers::escape($driver, $column, Fluent::Identifier);

if ($filter->isExactSearch()) {
$this->dataSource->where(sprintf('%s = %%s', $column), $value);
Expand Down
3 changes: 1 addition & 2 deletions src/DataSource/DibiFluentMssqlDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Contributte\Datagrid\Filter\FilterDateRange;
use Contributte\Datagrid\Filter\FilterText;
use Contributte\Datagrid\Utils\DateTimeHelper;
use dibi;
use Dibi\Fluent;
use Dibi\Helpers;
use Dibi\Result;
Expand Down Expand Up @@ -108,7 +107,7 @@ protected function applyFilterText(FilterText $filter): void
$or = [];

foreach ($condition as $column => $value) {
$column = Helpers::escape($driver, $column, dibi::IDENTIFIER);
$column = Helpers::escape($driver, $column, Fluent::Identifier);

if ($filter->isExactSearch()) {
$this->dataSource->where(sprintf('%s = %%s', $column), $value);
Expand Down

0 comments on commit 6f44dbf

Please sign in to comment.