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::
142
142
143
143
$phoneNumber = $entry->getAttribute('phoneNumber');
144
144
$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);
145
148
146
149
$entry->setAttribute('email', ['[email protected] ']);
147
150
$entryManager->update($entry);
@@ -153,6 +156,11 @@ delete existing ones::
153
156
// Removing an existing entry
154
157
$entryManager->remove(new Entry('cn=Test User,dc=symfony,dc=com'));
155
158
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
+
156
164
Batch Updating
157
165
______________
158
166
You can’t perform that action at this time.
0 commit comments