devhelp / mixed-mapping-driver-demo-bundle
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3
- doctrine/doctrine-bundle: *
- doctrine/orm: *
This package is not auto-updated.
Last update: 2024-11-04 14:46:57 UTC
README
Bundle brought to you by : Devhelp.pl (http://devhelp.pl)
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.
SPOILER ALERT !
It doesn't handle it ;) You can have the same entity mapped only using one of the drivers not mixing many of them
SPOILER ALERT ! - END
Basically, this is the order of mapping drivers. It the earlier does not exist then the next one is applied
- XML
- YAML
- Annotations
Installation
Composer
add package to composer.json
"require" : {
"devhelp/mixed-mapping-driver-demo-bundle": "dev-master"
}
run update
composer update
register bundle in your kernel class
public function registerBundles()
{
$bundles = array(
//...
new Devhelp\Bundle\MixedMappingDriverDemoBundle\DevhelpMixedMappingDriverDemoBundle(),
//...
);
}
Usage
run schema update task to see it yourself
php app/console doctrine:schema:update --dump-sql