From dd85452c71f35f8677a0fb7f48d5d943b59a5db3 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 10 Apr 2018 09:08:05 +0200 Subject: [PATCH] fix entry manager variable name --- components/ldap.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/ldap.rst b/components/ldap.rst index 743380d7179..c3af9ed322a 100644 --- a/components/ldap.rst +++ b/components/ldap.rst @@ -118,19 +118,19 @@ delete existing ones:: 'objectClass' => array('inetOrgPerson'), )); - $entityManager = $ldap->getEntryManager(); + $entryManager = $ldap->getEntryManager(); // Creating a new entry - $entityManager->add($entry); + $entryManager->add($entry); // Finding and updating an existing entry $query = $ldap->query('dc=symfony,dc=com', '(&(objectclass=person)(ou=Maintainers))'); $result = $query->execute(); $entry = $result[0]; $entry->setAttribute('email', array('fabpot@symfony.com')); - $entityManager->update($entry); + $entryManager->update($entry); // Removing an existing entry - $entityManager->remove(new Entry('cn=Test User,dc=symfony,dc=com')); + $entryManager->remove(new Entry('cn=Test User,dc=symfony,dc=com')); .. _Packagist: https://packagist.org/packages/symfony/ldap