File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,9 @@ delete existing ones::
142142
143143 $phoneNumber = $entry->getAttribute('phoneNumber');
144144 $isContractor = $entry->hasAttribute('contractorCompany');
145+ // attribute names in getAttribute() and hasAttribute() methods are case-sensitive
146+ // pass FALSE as the second method argument to make them case-insensitive
147+ $isContractor = $entry->hasAttribute('contractorCompany', false);
145148
146149 $entry->setAttribute('email', ['fabpot@symfony.com']);
147150 $entryManager->update($entry);
@@ -153,6 +156,11 @@ delete existing ones::
153156 // Removing an existing entry
154157 $entryManager->remove(new Entry('cn=Test User,dc=symfony,dc=com'));
155158
159+ .. versionadded :: 5.3
160+
161+ The option to make attribute names case-insensitive in ``getAttribute() ``
162+ and ``hasAttribute() `` was introduce in Symfony 5.3.
163+
156164Batch Updating
157165______________
158166
You can’t perform that action at this time.
0 commit comments