alevikzs/persistent-jms

JMS array collection handler for symfony doctrine persistent collection support

1.0.0 2017-10-23 20:45 UTC

This package is not auto-updated.

Last update: 2024-04-14 01:46:40 UTC


README

What is it?

This package is based on JMS Serializer and resolve symfony doctrine persistent collection support problem. When you use deserialization, original library is not support cascade and orphanRemoval relations functionality.

Installation

$ composer require alevikzs/persistent-jms

How to use

In your symfony services.yml config need to add:

jms_serializer.object_constructor:
    alias: jms_serializer.doctrine_object_constructor
    public: false
jms_serializer.array_collection_handler:
    class: PersistentJMS\ArrayCollectionHandler
    tags:
        - { name: jms_serializer.subscribing_handler }