Download the PHP package heymoon/doctrine-psql-enum without Composer
On this page you can find all versions of the php package heymoon/doctrine-psql-enum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download heymoon/doctrine-psql-enum
More information about heymoon/doctrine-psql-enum
Files in heymoon/doctrine-psql-enum
Download heymoon/doctrine-psql-enum
More information about heymoon/doctrine-psql-enum
Files in heymoon/doctrine-psql-enum
Vendor heymoon
Package doctrine-psql-enum
Short Description Store PHP native enums as PostgeSQL custom enum types
License MIT
Package doctrine-psql-enum
Short Description Store PHP native enums as PostgeSQL custom enum types
License MIT
Please rate this library. Is it a good library?
Informations about the package doctrine-psql-enum
Doctrine enums for PostgreSQL
Prerequisites: Symfony 7 + Doctrine 3
Installation
composer require heymoon/doctrine-psql-enum
Usage
Create library configuration:
config/packages/doctrine_postgres_enum.yaml
For defining new enum type, use native PHP enums:
For creation of enum-field in model, use enum
as type
value, enumType
in Column
attribute must be defined:
Create migrations via make:migration
. If enum was created or modified, the CREATE TYPE
/ALTER TYPE
calls would be added to migration. Example:
All versions of doctrine-psql-enum with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
doctrine/doctrine-bundle Version 2.*
doctrine/orm Version 3.*
symfony/framework-bundle Version 7.*
doctrine/doctrine-bundle Version 2.*
doctrine/orm Version 3.*
symfony/framework-bundle Version 7.*
The package heymoon/doctrine-psql-enum contains the following files
Loading the files please wait ....