2017 © Pedro Peláez
 

library doctrine-enum-oracle

Doctrine type for Enum data type in Oracle.

image

tuscanicz/doctrine-enum-oracle

Doctrine type for Enum data type in Oracle.

  • Thursday, June 22, 2017
  • by tuscanicz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4,664 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 11 % Grown

The README.md

Doctrine Enum Oracle

An abstract class defining a new Doctrine type for Enum data type in Oracle., (*1)

Has dependency on tuscanicz/enum and Doctrine 2 doctrine/orm., (*2)

How to use

Prepare a new Enum using tuscanicz/enum:, (*3)

<?php

namespace MyApp\Enum;

use Enum\AbstractEnum;

class MyExampleEnum extends AbstractEnum
{
    const MY_EXAMPLE_ENUM_FIRST = 'first';
    const MY_EXAMPLE_ENUM_SECOND = 'second';
    const MY_EXAMPLE_ENUM_THIRD = 'third';
}

Create a new Type MyExampleType into MyApp\Component\Doctrine\Type namespace and extending the AbstractEnumType:, (*4)

<?php

namespace MyApp\Component\Doctrine\Type;

use Doctrine\DBAL\Platforms\AbstractPlatform;
use DoctrineEnumOracle\AbstractEnumType;
use MyApp\Enum\MyExampleEnum;

class MyExampleType extends AbstractEnumType
{
    public function getEnumClassName()
    {
        return MyExampleEnum::class;
    }
}

How to use it with Symfony

Configure a new type (config.yml):, (*5)

doctrine:
    dbal:
        types:
            MyExampleType: 'MyApp\Component\Doctrine\Type\MyExampleType'

How to use it with Zend Framework

Configure a new type (config.php):, (*6)

'doctrine' => [
    'configuration' => [
        'orm_default' => [
            'types' => [
                'my_example_type' => 'MyApp\Component\Doctrine\Type\MyExampleType',
            ]
            ...
        ]
        ...
    ]
    ...
]

That's all!

Now you can try to generate a new migration or schema diff., (*7)

The Versions

22/06 2017

dev-master

9999999-dev https://github.com/tuscanicz/doctrine-enum-oracle

Doctrine type for Enum data type in Oracle.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Bechyne

orm doctrine enum oracle

22/06 2017

1.0.2

1.0.2.0 https://github.com/tuscanicz/doctrine-enum-oracle

Doctrine type for Enum data type in Oracle.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Bechyne

orm doctrine enum oracle

21/09 2016

1.0.1

1.0.1.0 https://github.com/tuscanicz/doctrine-enum-oracle

Doctrine type for Enum data type in Oracle.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Bechyne

orm doctrine enum oracle

20/09 2016

1.0

1.0.0.0 https://github.com/tuscanicz/doctrine-enum-oracle

Doctrine type for Enum data type in Oracle.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Bechyne

orm doctrine enum oracle

12/09 2016

0.9.1.1

0.9.1.1 https://github.com/tuscanicz/doctrine-enum-oracle

Doctrine type for Enum data type in Oracle.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Bechyne

orm doctrine enum oracle

09/09 2016

0.9.1

0.9.1.0 https://github.com/tuscanicz/doctrine-enum-oracle

Doctrine type for Enum data type in Oracle.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Bechyne

orm doctrine enum oracle

09/09 2016

0.9

0.9.0.0 https://github.com/tuscanicz/doctrine-enum-oracle

Doctrine type for Enum data type in Oracle.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Bechyne

orm doctrine enum oracle