Skip to content
This repository was archived by the owner on Aug 12, 2026. It is now read-only.

About

Bundle for Symfony2 and Doctrine2 that allow prefixing yours databases tables.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

DoctrineTablePrefixBundle

Bundle for Symfony2 and Doctrine2 that allow prefixing yours databases tables.

SensioLabsInsight Latest Stable Version Total Downloads Build Status Latest Unstable Version License

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_

About

Bundle for Symfony2 and Doctrine2 that allow prefixing yours databases tables.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages