Serializer v1.7.0-RC1 Release Notes

Release Date: 2017-04-25 // about 7 years ago
  • Implemented enhancements:

    • ๐Ÿ‘ Allow to configure the doctrine object constructor #751 (goetas)
    • Trigger doctrine events on doctrine proxies #750 (goetas)
    • โž• Added stdClass serialization handler #749 (goetas)

    ๐Ÿ›  Fixed bugs:

    • Array gets serialized as object, not as array, depending on order. #709
    • Doctrine Proxies and serializer.pre_serialize #666
    • ๐Ÿ›  Fix stdClass inconsistencies when serializing to JSON #730 (goetas)
    • ๐Ÿ‘ Allow to typehint for the type (array/hash) of the root item to be serialized #728 (goetas)

    Closed issues:

    • Array serialized as JSON object #706
    • From old issue #290 #670
    • Form validation error response - field names not converted from camel case to underscore #587
    • Ability to getGroups on Context #554
    • SerializedName misleading usage and constructor issue #548
    • ๐Ÿ‘ Discriminator should support xmlAttribute #547
    • Public method accessor is required for excluded/not exposed properties #519
    • Entity changed via preserialize and wrongly persisted #509
    • 0๏ธโƒฃ XML deserialization properties null when using default namespace #504
    • AccessorOrder is ignored #501
    • Deserialization of sub entites with non existing id #492
    • [Question] Handler/Converter for specific field #476
    • getClassName regex may incorrectly retrieve a false class name from comments above the class. #460
    • Multiple types for property? #445
    • ๐Ÿ‘ Allow non-qualified XML serialization when XML namespaces are part of the metadata #413
    • Discriminator field name #412
    • Serializing to and deserializing from DateTime is inconsistent #394
    • ManyToOne and OneToMany Serialization Groups #387
    • Static SubscribingHandlerInterface::getSubscribingMethod #380
    • ๐Ÿ‘‰ User defined ordering function #379
    • serialized_name for discriminator #372
    • Serializing object with empty array #350
    • VirtualProperty(s) are ignored with AccessorOrder #349
    • When setting a group of serialization, the inheritance doesn't work anymore #328
    • Serialization of empty object #323
    • "Can't pop from an empty datastructure" error when multiple serializer calls #319
    • virtual_properties cannot be excluded with groups #291
    • Integer serialized as String using VirtualProperty #289
    • SimpleObjectProxy is not implement abstract methods of Proxy class #287
    • Serializing array that have one of the element or member of an element an empty object #277
    • Serialization with groups return json object instead array #267
    • The purpose of "Force JSON output to "{}" instead of "[]" if it contains either no properties or all properties are null" #248
    • Json array serialisation #242
    • Ignoring "Assert" in output doc if excluded #241
    • Alphabetical accessor order doesn't respect SerializedName overrides #240
    • Request Annotation for Array Data #234
    • ๐Ÿ‘ Allow @var instead of @Type when deserializing #233
    • Strange issue with groups exclusion strategy #230
    • ๐Ÿšš Warning when deserializing removed entity #216
    • Where in the JMS code does the navigator call VisitProperty method for visitor #207
    • Property of the type array is not in alphabetic order after serialization #196
    • Magic and inconsistencies in array serialization #191
    • PreSerialization Event not handled if the value is not object #162
    • ๐Ÿ“‡ Hierarchical object serialization does not appear to inherit metadata from ancestors for metadata defined in XML #151
    • When using MaxDepth, Serialization of an array entitiy is not working #132
    • 0๏ธโƒฃ Switch to change default naming strategy #128
    • Throw exceptions on invalid input #112
    • Recursion detected error when serialization groups are in use #96
    • ๐Ÿ‘ Allow serialization groups to be accessible within event subscriber callbacks. #84
    • ๐Ÿ‘ Allow Constructed Object to be Passed to Deserialize #79
    • JSON recursion when first object in root list is empty #61
    • Can't serialize an array with an empty object #59

    ๐Ÿ”€ Merged pull requests:

    • โž• Added runtime twig extension support (significant performance improvements) #747 (goetas)