dev-master
9999999-dev http://devhelp.pl
MIT
The Requires
- php >=5.3
- doctrine/orm *
- doctrine/doctrine-bundle *
by PaweĆ BaraĆski
doctrine symfony mapping
Bundle brought to you by : Devhelp.pl (http://devhelp.pl), (*1)
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)
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(), //... ); }
run schema update task to see it yourself, (*10)
php app/console doctrine:schema:update --dump-sql
MIT
doctrine symfony mapping