Download the PHP package dxi/doctrine-extension without Composer
On this page you can find all versions of the php package dxi/doctrine-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package doctrine-extension
DXI Doctrine Extension
Doctrine 2 extensions
Installation
Add the dxi/doctrine-extension into composer.json
Enum Extension
This Extension provides convenient way to create Doctrine Mapping Types from your Enum Types. For now, only marc-mabe/php-enum is supported (see https://github.com/marc-mabe/php-enum).
-
Create your Enum Type
-
Define your Entity or Document
- Register your type with DBAL
Now you can use my_enum_type with for Doctrine ORM mappings and with DBAL bindings. (see http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/custom-mapping-types.html) Notice: Field mapped as my_enum_type creates column type "VARCHAR" (32 length by default, however you can use other "string" type properties)
- Register your type with MongoDB
Now you can use my_enum_type for your Doctrine MongoDB ODM mappings (see http://docs.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/reference/basic-mapping.html#custom-mapping-types)
Reference Extension
It's a fork of the Gedmo/References extension. See https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/references.md It provides multi registry support and XML/YML mapping drivers. Note, this Extension will be removed, when it become part of Gedmo Doctrine Extension project (see https://github.com/Atlantic18/DoctrineExtensions/pull/1320)