Skip to content

Commit af891ec

Browse files
committed
improvements
1 parent 8043ee4 commit af891ec

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/IQueryObjectDataSourceFactory.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
namespace ADT\QueryObjectDataSource;
44

5+
use ADT\DoctrineComponents\QueryObject;
6+
57
interface IQueryObjectDataSourceFactory
68
{
7-
/**
8-
* @param \ADT\DoctrineComponents\QueryObject $queryObject
9-
* @return QueryObjectDataSource
10-
*/
11-
function create(\ADT\DoctrineComponents\QueryObject $queryObject);
9+
public function create(QueryObject $queryObject): QueryObjectDataSource;
1210
}

src/QueryObjectDataSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function filter(array $filters): void
139139
call_user_func($filter->getConditionCallback(), $this->queryObject, $filter->getValue());
140140
}
141141
elseif (!$filter instanceof FilterDateRange) {
142-
$this->queryObject->searchIn(
142+
$this->queryObject->by(
143143
$filter instanceof OneColumnFilter ? $filter->getColumn() : $filter->getKey(),
144144
$filter->getValue(),
145145
!$filter instanceof FilterText

0 commit comments

Comments
 (0)