I have created a custom primary filter but it is not working, i don't know how to get values for a multi-enum field, below code doesn't work. anyone knows how to get value for multi-enum field using the SelectBuilder :
the companyType is a multi-enum field so i am trying get the companyType values both Client and Introducer.
Thanks
Code:
<?php
namespace Espo\Custom\Classes\Select\Account\PrimaryFilters;
use Espo\Core\Select\Primary\Filter;
use Espo\ORM\Query\SelectBuilder;
class Clients implements Filter
{
public function apply(SelectBuilder $queryBuilder): void
{
$queryBuilder->where([
'companyType' => ['Client', 'Introducer'],
]);
}
}
Thanks

Comment