CodeExplorer isSearchAble example
$query->
addOrderBy($item['property'
],
$item['direction'
]);
} } $idSearch = null;
if (!
empty($filters)) { foreach ($filters as $item) { if ($item['property'
] === 'search'
) { $query->
setParameter('search', '%' .
$item['value'
] . '%'
);
foreach ($this->type->
getFields() as $field) { if (!
$field->
isSearchAble()) { continue;
} $query->
orWhere(sprintf('`%s` LIKE :search',
$field->
getName()));
} } else { $where =
$item['value'
];
$expression = null;
if ($item['property'
] === 'id'
) { $idSearch = \
is_array($where) ?
$where :
[$where];
}