2017 © Pedro Peláez
 

symfony-bundle doctrine-discriminator-bundle

Symfony-ready Doctrine DiscriminatorMap extension, which allows to move mapping from superclass to subclasses

image

levelab/doctrine-discriminator-bundle

Symfony-ready Doctrine DiscriminatorMap extension, which allows to move mapping from superclass to subclasses

  • Thursday, March 3, 2016
  • by init-penguin
  • Repository
  • 3 Watchers
  • 12 Stars
  • 18,474 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

LevelabDoctrineDiscriminatorBundle

Doctrine discriminator map extension bundle, which allows to move mapping from superclass to subclasses easily, (*1)

Usage

  • Import annotation classes
use Levelab\Doctrine\DiscriminatorBundle\Annotation\DiscriminatorParent
use Levelab\Doctrine\DiscriminatorBundle\Annotation\DiscriminatorEntry
  • Then turn this...
/**
 * @DiscriminatorMap({"self" = "Parent", "child1" = "Child1", "child2" = "Child2"})
 */
class Parent { }

class Child1 extends Parent {}

class Child2 extends Parent {}
  • ... into this
/**
 * @DiscriminatorParent()
 * @DiscriminatorEntry("self")
 */
class Parent { }

/**
 * @DiscriminatorEntry("child1")
 */
class Child1 extends Parent {}

/**
 * @DiscriminatorEntry("child2")
 */
class Child2 extends Parent {}
  • That's it!

The Versions

03/03 2016

dev-master

9999999-dev http://levelab.ru/project/show/2

Symfony-ready Doctrine DiscriminatorMap extension, which allows to move mapping from superclass to subclasses

  Sources   Download

MIT

The Requires

 

by Leonid Repin

extension symfony2 doctrine2 map discriminator

03/03 2016

v0.2

0.2.0.0 http://levelab.ru/project/show/2

Symfony-ready Doctrine DiscriminatorMap extension, which allows to move mapping from superclass to subclasses

  Sources   Download

MIT

The Requires

 

by Leonid Repin

extension symfony2 doctrine2 map discriminator

26/02 2015

v0.1

0.1.0.0 http://levelab.ru/project/show/2

Symfony-ready Doctrine DiscriminatorMap extension, which allows to move mapping from superclass to subclasses

  Sources   Download

MIT

The Requires

 

by Leonid Repin

extension symfony2 doctrine2 map discriminator

17/12 2014

dev-pr/2

dev-pr/2 http://levelab.ru/project/show/2

Symfony-ready Doctrine DiscriminatorMap extension, which allows to move mapping from superclass to subclasses

  Sources   Download

MIT

The Requires

 

by Leonid Repin

extension symfony2 doctrine2 map discriminator

12/07 2014

v0.1-alpha

0.1.0.0-alpha http://levelab.ru/project/show/2

Symfony-ready Doctrine DiscriminatorMap extension, which allows to move mapping from superclass to subclasses

  Sources   Download

MIT

The Requires

 

by Leonid Repin

extension symfony2 doctrine2 map discriminator