2017 © Pedro Peláez
 

library doctrine-prefix-bundle

Listener that prefixes tables and sequences

image

roukmoute/doctrine-prefix-bundle

Listener that prefixes tables and sequences

  • Tuesday, June 28, 2016
  • by roukmoute
  • Repository
  • 1 Watchers
  • 3 Stars
  • 10,170 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

SensioLabsInsight, (*1)

DoctrinePrefixBundle

This bundle prefixes tables and, if you are using PostgreSQL, sequences with a string of your choice by changing the metadata of your entities. Prefixes are good if you need to share a database with tables from another project, or if you want to name your entities using reserved keywords like user or group., (*2)

Installation

composer require roukmoute/doctrine-prefix-bundle

Configuration

First, you need to register the bundle in your application kernel, like this :, (*3)

<?php
//app/AppKernel.php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            …
            new Roukmoute\DoctrinePrefixBundle\RoukmouteDoctrinePrefixBundle()
        );
        …

The configuration looks as follows :, (*4)

roukmoute_doctrine_prefix:

    # will be prepended to table and sequence names
    prefix:               sf

    # if set, the prefix will be applied to specified bundles only
    bundles:              []

    # the encoding to convert the prefix to
    encoding:             UTF-8

The Versions

28/06 2016

dev-master

9999999-dev

Listener that prefixes tables and sequences

  Sources   Download

MIT

The Requires

 

by Mathias STRASSER

09/07 2015

v0.9

0.9.0.0

Listener that prefixes tables and sequences

  Sources   Download

MIT

The Requires

 

by Mathias STRASSER

28/10 2014

v0.8

0.8.0.0

Listener that prefixes tables and sequences

  Sources   Download

MIT

The Requires

 

by Mathias STRASSER