th3mouk / doctrine-table-prefix-bundle
Bundle for Symfony2 and Doctrine2 that allow prefixing yours databases tables.
Installs: 756
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3
- symfony/framework-bundle: >=2.3
This package is auto-updated.
Last update: 2021-10-04 21:12:28 UTC
README
Bundle for Symfony2 and Doctrine2 that allow prefixing yours databases tables.
Installation
First: Download DoctrineTablePrefixBundle using composer
Using command line
composer require th3mouk/doctrine-table-prefix-bundle
Or editing composer.json
:
{ "require": { "th3mouk/doctrine-table-prefix-bundle": "^1.0" } }
Second : Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Th3mouk\DoctrineTablePrefixBundle\Th3moukDoctrineTablePrefixBundle(), // ... ); }
Finally : Choose your prefix
Default prefix is "sf2_".
You can change the prefix in your configuration:
# app/config/config.yml th3mouk_doctrine_table_prefix: prefix: sf2_