aescarcha/serializer

A bundle to handle serialization and deseralization of Entities on Symfony, it's a layer over Symfony's Serializer Component

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2016-08-03 16:55 UTC

This package is auto-updated.

Last update: 2024-11-19 11:07:12 UTC


README

Introduction

This bundle is made to make serialization of Entities easier on Symfony. It handles symfony/serializer and provides a fallback to read from database if needed.

Install

composer require aescarcha/serializer

This bundle depends on doctrine entity manager, you need to add this

services.yml
services:
    aescarcha.serializer:
        class: Aescarcha\SerializerBundle\Controller\SerializeController
        arguments: [ @doctrine.orm.entity_manager ]
AppKernel.php
    $bundles = array(
        new Aescarcha\SerializerBundle\AescarchaSerializerBundle(),
    );

Tests

Tests are provided on the repo, but they're not working because the test requires some Entities and Repositories to work, making them work in a clean symfony install is also a TODO