PHPackages                             pixelfederation/doctrine-generic-types-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. pixelfederation/doctrine-generic-types-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

pixelfederation/doctrine-generic-types-bundle
=============================================

Symfony bundle for Doctrine Generic Types.

1.0.0(6mo ago)00[1 PRs](https://github.com/pixelfederation/doctrine-generic-types-bundle/pulls)MITPHPPHP ^8.3CI passing

Since Oct 27Pushed 5mo agoCompare

[ Source](https://github.com/pixelfederation/doctrine-generic-types-bundle)[ Packagist](https://packagist.org/packages/pixelfederation/doctrine-generic-types-bundle)[ Docs](https://github.com/pixelfederation/doctrine-generic-types-bundle)[ RSS](/packages/pixelfederation-doctrine-generic-types-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (23)Versions (3)Used By (0)

[![Grumphp](https://github.com/pixelfederation/doctrine-generic-types-bundle/actions/workflows/grumphp.yaml/badge.svg)](https://github.com/pixelfederation/doctrine-generic-types-bundle/actions/workflows/grumphp.yaml)[![Latest Version](https://camo.githubusercontent.com/74a1126bdb7858cdd4f8706199e5500b71ef0a139abe75c1baa304aa46041a80/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706978656c66656465726174696f6e2f646f637472696e652d67656e657269632d74797065732d62756e646c652e737667)](https://packagist.org/packages/pixelfederation/doctrine-generic-types-bundle)[![Downloads](https://camo.githubusercontent.com/966588993f8068ee79f21cdd9e26114b535f0ec0ec3f139ac7184ccf50f279ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f706978656c66656465726174696f6e2f646f637472696e652d67656e657269632d74797065732d62756e646c6579)](https://packagist.org/packages/pixelfederation/doctrine-generic-types-bundle)

PixelFederation DoctrineGenericTypesBundle
==========================================

[](#pixelfederation-doctrinegenerictypesbundle)

Installation
------------

[](#installation)

install via Composer:

```
composer require pixelfederation/doctrine-generic-types-bundle
```

register bundle in `config/bundles.php` (if you don't use Symfony Flex)

```
return [
    // ...
    PixelFederation\DoctrineGenericTypesBundle\PixelFederationDoctrineGenericTypesBundle::class => ['all' => true],
];
```

bundle configuration:

```
# config/packages/pixel_federation_doctrine_generic_types.yaml
pixel_federation_doctrine_generic_types:
    generic_types:
        PixelFederation\DoctrineGenericTypesBundle\Value\BooleanValue: PixelFederation\DoctrineGenericTypesBundle\Doctrine\Type\BooleanValueType
        PixelFederation\DoctrineGenericTypesBundle\Value\FloatValue: PixelFederation\DoctrineGenericTypesBundle\Doctrine\Type\FloatValueType
        PixelFederation\DoctrineGenericTypesBundle\Value\IntegerValue: PixelFederation\DoctrineGenericTypesBundle\Doctrine\Type\IntegerValueType
        PixelFederation\DoctrineGenericTypesBundle\Value\StringValue: PixelFederation\DoctrineGenericTypesBundle\Doctrine\Type\StringValueType
        # https://github.com/ramsey/uuid integration
        PixelFederation\DoctrineGenericTypesBundle\Bridge\RamseyUuid\Value\UuidValue: PixelFederation\DoctrineGenericTypesBundle\Bridge\RamseyUuid\Doctrine\Type\UuidValueType
    # Directories where to find your Value Objects
    directories:
        - ./src/App/Value
        - ./src/App/OtherValue
```

Usage
-----

[](#usage)

Crete your Value Object:

```
