Skip to content

Commit bb08065

Browse files
authored
typos in sample code
entityManager -> entryManager
1 parent 8f727dc commit bb08065

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/ldap.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ delete existing ones::
128128
$result = $query->execute();
129129
$entry = $result[0];
130130
$entry->setAttribute('email', array('fabpot@symfony.com'));
131-
$entityManager->update($entry);
131+
$entryManager->update($entry);
132132

133133
// Adding or removing values to a multi-valued attribute is more efficient than using update()
134-
$entityManager->addAttributeValues($entry, 'telephoneNumber', array('+1.111.222.3333', '+1.222.333.4444'));
135-
$entityManager->removeAttributeValues($entry, 'telephoneNumber', array('+1.111.222.3333', '+1.222.333.4444'));
134+
$entryManager->addAttributeValues($entry, 'telephoneNumber', array('+1.111.222.3333', '+1.222.333.4444'));
135+
$entryManager->removeAttributeValues($entry, 'telephoneNumber', array('+1.111.222.3333', '+1.222.333.4444'));
136136

137137
// Removing an existing entry
138138
$entryManager->remove(new Entry('cn=Test User,dc=symfony,dc=com'));

0 commit comments

Comments
 (0)