Hi there
I have a custom entity with a multiEnum field called "statut"
i try to write a custom entrypoint to build a custom dashboard, adding some stuff to filter my dashboard
I have tried many differents synthax but i don't manage to filter my data regarding "multiEnum" fields value.
Here is my php code
i tried many synthax about => $whereClause['statut=*'] = 'Prospect';
$whereClause['statut'] = 'Prospect';
or
$whereClause[] = array('statut' => 'Prospect');
or
$whereClause[] = array('statut' => array('Prospect'));
but didn't manage to get any filtered results
any idea?
Thanks for your support !
I didn't find any documentation about the synthax available for the "keys" of that whereClause array :-(
https://github.com/espocrm/documenta...lopment/orm.md
I have a custom entity with a multiEnum field called "statut"
i try to write a custom entrypoint to build a custom dashboard, adding some stuff to filter my dashboard
I have tried many differents synthax but i don't manage to filter my data regarding "multiEnum" fields value.
Here is my php code
PHP Code:
$whereClause = array();
$whereClause['statut=*'] = 'Prospect';
$order_by = "name";
$searchParams = array(
'whereClause' => $whereClause,
'orderBy' => $order_by
);
$data = $this->getEntityManager()->getRepository('DossierMDB')->find($searchParams);
$whereClause['statut'] = 'Prospect';
or
$whereClause[] = array('statut' => 'Prospect');
or
$whereClause[] = array('statut' => array('Prospect'));
but didn't manage to get any filtered results
any idea?
Thanks for your support !
I didn't find any documentation about the synthax available for the "keys" of that whereClause array :-(
https://github.com/espocrm/documenta...lopment/orm.md
Comment