Skip to content

Commit 0cde555

Browse files
committed
minor symfony#9297 Use "setAttribute" method (liviubalan)
This PR was merged into the 3.4 branch. Discussion ---------- Use "setAttribute" method See: http://api.symfony.com/3.4/Symfony/Component/Ldap/Entry.html#method_setAttribute Commits ------- 676c1fc Use "setAttribute" method
2 parents 33550f5 + 676c1fc commit 0cde555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/ldap.rst

+1-1
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('[email protected]'));
129+
$entry->setAttribute('email', array('[email protected]'));
130130
$em->update($entry);
131131

132132
// Removing an existing entry

0 commit comments

Comments
 (0)