dvlpm/serializable-type-bundle

可序列化类型包

安装量: 2,722

依赖项: 0

建议者: 0

安全: 0

类型:symfony-bundle

0.2.0 2024-02-24 12:06 UTC

This package is auto-updated.

Last update: 2024-09-24 13:18:20 UTC


README

安装

使用非常简单

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;
}

这将启用将您的类型中的值字段进行转换