danaki/doctrine-enum-type-bundle

This bundle provides a typed enumeration for Symfony2 applications

Installs: 127 129

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 4

Forks: 8

Open Issues: 0

Type:symfony-bundle

0.2.3 2022-02-08 23:14 UTC

This package is auto-updated.

Last update: 2024-04-09 03:53:49 UTC


README

Configures Doctrine Enum Type via Symfony config file.

Installation

composer require danaki/doctrine-enum-type-bundle

Usage

Create config/packages/doctrine_enum_type.yaml with similar contents:

danaki_doctrine_enum_type:
    types:
        php_enum_gender: Acelaya\Enum\Gender
        App\Enum\YourEnum: ~

Problems

If you're getting "Unknown column type" error, try to clear cache with rm -rf var/cache