Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions en/appendices/5-3-migration-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Validation

- The signature of ``Validator::validate(array $data, bool $newRecord = true, array $context = [])`` has now a additional third parameter ``$context``.
It can be used to pass necessary context into the validation when marshalling.
- The ``existsIn`` validation rule now defaults ``allowNullableNulls`` to ``true`` instead of ``false``.
This means that ``null`` values in nullable foreign keys will pass validation by default, which is more
semantically correct for optional relationships. If you need the previous behavior where ``null`` values
fail validation, you can explicitly set ``allowNullableNulls`` to ``false`` in your validation rules.

View
----
Expand Down
Loading