8000 Merge branch '4.4' into 5.1 · symfony/symfony-docs@2fc9e00 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2fc9e00

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: [Ldap] Add examples about get/has attribute
2 parents 04278b5 + 0185251 commit 2fc9e00

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)
0