Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0cde555

Browse filesBrowse files
committed
minor #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
Copy full SHA for 0cde555

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎components/ldap.rst

Copy file name to clipboardExpand all lines: components/ldap.rst
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.