mkurc1/doctrine-prefix-bundle

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Symfony DoctrinePrefixBundle

1.0.1 2016-11-26 12:04 UTC

This package is not auto-updated.

Last update: 2021-10-13 11:18:30 UTC


README

The bundle added prefix before entity table name. This bundle is for Symfony Framework.

SensioLabsInsight

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.