ref
This commit is contained in:
@@ -43,7 +43,16 @@ use stdClass;
|
||||
class SearchParams
|
||||
{
|
||||
/** @var array<string, mixed> */
|
||||
private array $rawParams = [];
|
||||
private array $rawParams = [
|
||||
'select' => null,
|
||||
'boolFilterList' => [],
|
||||
'orderBy' => null,
|
||||
'order' => null,
|
||||
'maxSize' => null,
|
||||
'where' => null,
|
||||
'primaryFilter' => null,
|
||||
'textFilter' => null,
|
||||
];
|
||||
|
||||
public const ORDER_ASC = 'ASC';
|
||||
public const ORDER_DESC = 'DESC';
|
||||
|
||||
@@ -499,11 +499,10 @@ class SelectBuilder
|
||||
return;
|
||||
}
|
||||
|
||||
$searchParams = SearchParams::fromRaw([
|
||||
'boolFilterList' => $this->boolFilterList,
|
||||
'primaryFilter' => $this->primaryFilter,
|
||||
'textFilter' => $this->textFilter,
|
||||
]);
|
||||
$searchParams = SearchParams::create()
|
||||
->withBoolFilterList($this->boolFilterList)
|
||||
->withPrimaryFilter($this->primaryFilter)
|
||||
->withTextFilter($this->textFilter);
|
||||
|
||||
if ($this->searchParams) {
|
||||
$searchParams = SearchParams::merge($searchParams, $this->searchParams);
|
||||
|
||||
Reference in New Issue
Block a user