Skip to content

Commit 676c1fc

Browse files
authored
1 parent 33550f5 commit 676c1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/ldap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ delete existing ones::
126126
$query = $ldap->query('dc=symfony,dc=com', '(&(objectclass=person)(ou=Maintainers))');
127127
$result = $query->execute();
128128
$entry = $result[0];
129-
$entry->addAttribute('email', array('fabpot@symfony.com'));
129+
$entry->setAttribute('email', array('fabpot@symfony.com'));
130130
$em->update($entry);
131131

132132
// Removing an existing entry

0 commit comments

Comments
 (0)