Skip to content

DXI-Ltd/doctrine-extension-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DXI Doctrine Extension Bundle

Doctrine 2 extensions Symfony 2 integration

Installation

Add the dxi/doctrine-extension-bundle into composer.json

{
    "require": {
        "php":              ">=5.3.2",
        "dxi/doctrine-extension-bundle": "~1.0"
    }
}

Register the Bundle in the AppKernel

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Dxi\DoctrineExtensionBundle\DxiDoctrineExtensionBundle(),
    // ...
);

Enum Extension - Configuration

Enabling Enum Extension

# app/config/config.yml

dxi_doctrine_extension:
    enum:
        types:
            dxi.my_type: MyEnum #register your enum types here

It generates ODM / DBAL Types for "MyEnum" class and registers them.

See Enum extension documentation:

https://github.com/DXI-Ltd/doctrine-extension

Reference Extension

Enabling Reference Extension

# app/config/config.yml

dxi_doctrine_extension:
    reference: true

See Reference extension documentation:

https://github.com/DXI-Ltd/doctrine-extension https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/references.md

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published