mapado/pretty-types

Doctrine Type storing pretty printed JSON into database

v0.0.2 2018-02-22 13:34 UTC

This package is auto-updated.

Last update: 2020-01-15 11:57:46 UTC


README

Based on Doctrine DBAL types.

Will store pretty printed JSON into database.

Installation

composer require  mapado/pretty-types

Usage

Configuration

In your config file

# Doctrine Configuration
doctrine:
    dbal:
        types:
            json_pretty:  Mapado\PrettyTypes\JsonPrettyType

In your entities

/**
 * ...
 *
 * @ORM\Column(name="column_name", type="json_pretty")
 */

License

This project is licensed under the MIT license.