diff --git a/src/DataSource/DibiFluentDataSource.php b/src/DataSource/DibiFluentDataSource.php index ecce4212..e6de508d 100755 --- a/src/DataSource/DibiFluentDataSource.php +++ b/src/DataSource/DibiFluentDataSource.php @@ -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; @@ -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); diff --git a/src/DataSource/DibiFluentMssqlDataSource.php b/src/DataSource/DibiFluentMssqlDataSource.php index 641ddb71..0665b974 100755 --- a/src/DataSource/DibiFluentMssqlDataSource.php +++ b/src/DataSource/DibiFluentMssqlDataSource.php @@ -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; @@ -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);