You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/property_access.rst
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -166,26 +166,32 @@ getters, this means that you can do something like this::
166
166
167
167
This will produce: ``He is an author``
168
168
169
-
Accessing a non existing property path
169
+
Accessing a non Existing Property Path
170
170
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
171
171
172
-
By default a :class:`Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException` is thrown if the property path passed to :method:`PropertyAccessor::getValue<Symfony\\Component\\PropertyAccess\\PropertyAccessor::getValue>`
173
-
does not exist.
174
-
You can change this behaviour using the :method:`Symfony\\Component\\PropertyAccess\\PropertyAccessorBuilder::disableExceptionOnInvalidPropertyPath`
172
+
.. versionadded:: 4.3
173
+
174
+
The ``disableExceptionOnInvalidPropertyPath()`` method was introduced in
175
+
Symfony 4.3.
176
+
177
+
By default a :class:`Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException`
178
+
is thrown if the property path passed to :method:`PropertyAccessor::getValue<Symfony\\Component\\PropertyAccess\\PropertyAccessor::getValue>`
179
+
does not exist. You can change this behaviour using the
0 commit comments