Skip to content

Commit 0acb44f

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: [Ldap] Add examples about get/has attribute
2 parents 04e5ee6 + 2fc9e00 commit 0acb44f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/ldap.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ delete existing ones::
139139
$query = $ldap->query('dc=symfony,dc=com', '(&(objectclass=person)(ou=Maintainers))');
140140
$result = $query->execute();
141141
$entry = $result[0];
142+
143+
$phoneNumber = $entry->getAttribute('phoneNumber');
144+
$isContractor = $entry->hasAttribute('contractorCompany');
145+
142146
$entry->setAttribute('email', ['fabpot@symfony.com']);
143147
$entryManager->update($entry);
144148

0 commit comments

Comments
 (0)