src/LdapTools/Object/LdapObjectManager.php
public function persist(LdapObject $ldapObject)
    {
        if (empty($ldapObject->getBatchCollection()->toArray())) {
            return;
        }
        $this->dispatcher->dispatch(new LdapObjectEvent(Event::LDAP_OBJECT_BEFORE_MODIFY, $ldapObject));

        $this->validateObject($ldapObject);
        $this->executeBatchOperation($ldapObject);

        $this->dispatcher->dispatch(new LdapObjectEvent(Event::LDAP_OBJECT_AFTER_MODIFY, $ldapObject));
    }
public function persist(LdapObject $ldapObject)
    {
        if (empty($ldapObject->getBatchCollection()->toArray())) {
            return;
        }
        $this->dispatcher->dispatch(new LdapObjectEvent(Event::LDAP_OBJECT_BEFORE_MODIFY, $ldapObject));

        $this->validateObject($ldapObject);
        $this->executeBatchOperation($ldapObject);

        $this->dispatcher->dispatch(new LdapObjectEvent(Event::LDAP_OBJECT_AFTER_MODIFY, $ldapObject));
    }
public function persist ( LdapObject $ ldapObject ) { if ( empty ( $ ldapObject -> getBatchCollection ( ) -> toArray ( ) ) ) { return ; } $ this -> dispatcher -> dispatch ( new LdapObjectEvent ( Event :: LDAP_OBJECT_BEFORE_MODIFY , $ ldapObject ) ) ; $ this -> validateObject ( $ ldapObject ) ; $ this -> executeBatchOperation ( $ ldapObject ) ; $ this -> dispatcher -> dispatch ( new LdapObjectEvent ( Event :: LDAP_OBJECT_AFTER_MODIFY , $ ldapObject ) ) ; }
Updates an object in LDAP. It will only update attributes that actually changed on the object.

@param LdapObject $ldapObject
Updates an object in LDAP . It will only update attributes that actually changed on the object .