src/LdapTools/Hydrator/ArrayHydrator.php
protected function convertValuesToLdap($values, $dn = null)
    {
        if (!($values instanceof OperatorCollection) && !$this->schema) {
            return $values;
        }
        $valueResolver = BaseValueResolver::getInstance(
            $this->schema,
            $values,
            $this->type
        );
        $this->configureValueResolver($valueResolver, $dn);

        return $valueResolver->toLdap();
    }
protected function convertValuesToLdap($values, $dn = null)
    {
        if (!($values instanceof OperatorCollection) && !$this->schema) {
            return $values;
        }
        $valueResolver = BaseValueResolver::getInstance(
            $this->schema,
            $values,
            $this->type
        );
        $this->configureValueResolver($valueResolver, $dn);

        return $valueResolver->toLdap();
    }
protected function convertValuesToLdap ( $ values , $ dn = null ) { if ( ! ( $ values instanceof OperatorCollection ) && ! $ this -> schema ) { return $ values ; } $ valueResolver = BaseValueResolver :: getInstance ( $ this -> schema , $ values , $ this -> type ) ; $ this -> configureValueResolver ( $ valueResolver , $ dn ) ; return $ valueResolver -> toLdap ( ) ; }
Checks for attributes assigned an attribute converter. It will replace the value with the converted value then
send back all the attributes.

@param array|BatchCollection|OperatorCollection $values
@param string|null $dn
@return array|BatchCollection|OperatorCollection
Checks for attributes assigned an attribute converter . It will replace the value with the converted value then send back all the attributes .