alevikzs / persistent-jms
JMS array collection handler for symfony doctrine persistent collection support
1.0.0
2017-10-23 20:45 UTC
Requires
- php: >=7.0
- doctrine/orm: ^2.5.11
- jms/serializer-bundle: ^2.0
This package is not auto-updated.
Last update: 2025-01-05 05:38:24 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 }