DoctrinePrefixrBundle
, (*1)
What is does ?
This bundle add "prefix" to table, configured from the Bundle the entities is found., (*2)
For example, entities in AcmeDemo can have the prefix acme_demo and AcmeLogin might have acme_login, (*3)
Installation
using Composer:, (*4)
{
"require": {
"chellem/doctine-prefixr-bundle": "dev-master"
}
}
CONFIGURATION
Register the bundle:, (*5)
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new DoctrinePrefixr\Bundle\DoctrinePrefixrBundle\DoctrinePrefixrBundle(),
);
// ...
}
Configuration in your config.yml:, (*6)
# app/config/config.yml
doctrine_prefixr:
prefixes:
# no need to add 'Bundle' to the Bundle name
AcmeDemo: acme_demo
AcmeLogin: acme_login
MyCustom: my_custom