Skip to content

Commit 15185ab

Browse files
committed
minor #9576 fix entry manager variable name (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- fix entry manager variable name Commits ------- dd85452 fix entry manager variable name
2 parents 44f2402 + dd85452 commit 15185ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/ldap.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,19 @@ delete existing ones::
118118
'objectClass' => array('inetOrgPerson'),
119119
));
120120

121-
$entityManager = $ldap->getEntryManager();
121+
$entryManager = $ldap->getEntryManager();
122122

123123
// Creating a new entry
124-
$entityManager->add($entry);
124+
$entryManager->add($entry);
125125

126126
// Finding and updating an existing entry
127127
$query = $ldap->query('dc=symfony,dc=com', '(&(objectclass=person)(ou=Maintainers))');
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
// Removing an existing entry
134-
$entityManager->remove(new Entry('cn=Test User,dc=symfony,dc=com'));
134+
$entryManager->remove(new Entry('cn=Test User,dc=symfony,dc=com'));
135135

136136
.. _Packagist: https://packagist.org/packages/symfony/ldap

0 commit comments

Comments
 (0)