dvlpm/serializable-type-bundle

Serializable Type Bundle

Installs: 2 011

Dependents: 0

Suggesters: 0

Security: 0

Type:symfony-bundle

0.2.0 2024-02-24 12:06 UTC

This package is auto-updated.

Last update: 2024-04-24 12:29:11 UTC


README

Installation

Usage is as simple as

composer require dvlpm/serializable-type-bundle:^1.0
// Kernel

public function registerBundles()
{
    // ...
    $bundles[] = new \Dvlpm\SerializableTypeBundle\DvlpmSerializableTypeBundle();
    // ...
}
# config.yml
dvlpm_serializable_type:
    dbal_types:
        my_domain_type: My\Domain\Type
class MyEntity
{
    /** @ORM\Column(type="my_domain_type") */
    private $value;
}

This will enable conversion of value field from your type