public function toLdap($value)
{
$this->validateCurrentAttribute($this->getOptions()['typeMap']);
if ($this->getOperationType() == AttributeConverterInterface::TYPE_SEARCH_TO) {
$valueToLdap = $this->getQueryOperator($value);
} else {
$valueToLdap = $this->modifyGroupTypeValue((bool) $value);
}
return $valueToLdap;
}