cleentfaar / doctrine-table-prefix-bundle
This bundle allows doctrine to recognize any prefix you might use on your table names (e.g. acme_)
Installs: 726
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
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.4
- symfony/yaml: ~2.3
This package is auto-updated.
Last update: 2019-02-21 09:19:31 UTC
README
What is it?
This bundle allows doctrine to recognize any prefix you might use on your table names (e.g. acme_). It is an updated and revisioned version of the original bundle by GrifiS, which had a lot of compatibility issues and missed some key things that I needed for my own projects.
Installation
1) Install the bundle using composer
Add CleentfaarDoctrineTablePrefixBundle in your composer.json:
{ "require": { "cleentfaar/doctrine-table-prefix-bundle": "*" } }
Now tell composer to download the bundle by running the command:
$ php composer.phar update cleentfaar/doctrine-table-prefix-bundle
Composer will install the bundle to your project's vendor/cleentfaar
directory.
2) Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Cleentfaar\Bundle\DoctrineTablePrefixBundle\CleentfaarDoctrineTablePrefixBundle(), ); }
Default prefix is "sf_".
You can change the prefix in your configuration:
# app/config/config.yml cleentfaar_doctrine_table_prefix: prefix: sf_