2017 © Pedro PelĂĄez
 

symfony-bundle mixed-mapping-driver-demo-bundle

image

devhelp/mixed-mapping-driver-demo-bundle

  • Tuesday, June 18, 2013
  • by devhelp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Credits

Bundle brought to you by : Devhelp.pl (http://devhelp.pl), (*1)

Purpose

This is a simple demo of how doctrine in symfony handles case when on entity is mapped using annotation, yaml and xml at one time., (*2)

SPOILER ALERT !, (*3)

It doesn't handle it ;) You can have the same entity mapped only using one of the drivers not mixing many of them, (*4)

SPOILER ALERT ! - END, (*5)

Basically, this is the order of mapping drivers. It the earlier does not exist then the next one is applied, (*6)

  • XML
  • YAML
  • Annotations

Installation

Composer

add package to composer.json, (*7)

"require" : {
    "devhelp/mixed-mapping-driver-demo-bundle": "dev-master"
}

run update, (*8)

composer update

register bundle in your kernel class, (*9)

public function registerBundles()
{
    $bundles = array(
        //...
        new Devhelp\Bundle\MixedMappingDriverDemoBundle\DevhelpMixedMappingDriverDemoBundle(),
        //...
    );
}

Usage

run schema update task to see it yourself, (*10)

php app/console doctrine:schema:update --dump-sql

The Versions

18/06 2013

dev-master

9999999-dev http://devhelp.pl

  Sources   Download

MIT

The Requires

 

by PaweƂ BaraƄski

doctrine symfony mapping