/**
* Convert the batch values to LDAP batch mod specifications array.
*
* @return OperatorCollection
*/
public function toLdap()
{
/** @var LdapObjectSchema $schema */
foreach ($this->operators->getAliases() as $alias => $schema) {
$this->schema = $schema;
$this->processOperator($schema->getFilter(), null);
foreach ($this->operators as $operator) {
$this->processOperator($operator, $alias);
}
}
return $this->operators;
}