-
-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infer accessor order if not explicitly set in YML
The accessor order is now inferred if a ``custom_accessor_order`` is given and ``accessor_order`` has not been explicitly defined: ``` SomeClass: accessor_order: custom # Can be ommitted now if custom_accessor_order is set. custom_accessor_order: ["a", "b", "c"] ```
- Loading branch information
1 parent
5f9fb57
commit 740c63a
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tests/JMS/Serializer/Tests/Metadata/Driver/yml/accessor_inferred/Person.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
JMS\Serializer\Tests\Fixtures\Person: | ||
custom_accessor_order: ["age", "name"] | ||
|
||
properties: | ||
age: ~ | ||
name: ~ |