Fixed: fix empty result in household api search

fix https://gitlab.com/Chill-Projet/chill-bundles/-/issues/85
This commit is contained in:
2023-04-07 17:34:12 +02:00
parent 839b0fc826
commit a42a4ab9bd
3 changed files with 32 additions and 19 deletions

View File

@@ -16,6 +16,18 @@ use function count;
use function implode;
use function strtr;
/**
* This create a query optimized for searching for the api response.
*
* When build, this class generate a SQL string and a list of a parameters which is suitable for running
* a native SQL query. This have usually the form of
*
* `SELECT '<key>' as key, <metadata> as metadata, <pertinence> as pertinence FROM <from clause> WHERE <where clause>`.
*
* The clause between `<>` are provided through the dedicated method in this class (@link{self::setSelectKey},
* @link{self::setFromClause}), etc.).
*
*/
class SearchApiQuery
{
private ?string $fromClause = null;