mkurc1 / doctrine-prefix-bundle
Symfony DoctrinePrefixBundle
Installs: 610
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.9
- doctrine/orm: ^2.4.8
This package is not auto-updated.
Last update: 2024-06-06 00:13:00 UTC
README
The bundle added prefix before entity table name. This bundle is for Symfony Framework.
Configure
Require the bundle with composer:
$ composer require mkurc1/doctrine-prefix-bundle
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new DoctrinePrefixBundle\DoctrinePrefixBundle(),
// ...
);
}
Configure your application:
# app/config/config.yml
doctrine_prefix:
table_prefix: 'your_prefix'
Update your database schema:
$ php app/console doctrine:schema:update --force
License
The bundle is released under the MIT License.