An open API service indexing awesome lists of open source software.

https://github.com/borsaco/doctrineprefixbundle

Bundle to add prefix to tables and columns database
https://github.com/borsaco/doctrineprefixbundle

Last synced: 9 months ago
JSON representation

Bundle to add prefix to tables and columns database

Awesome Lists containing this project

README

          

# DoctrinePrefixBundle
Bundle to add prefix to tables and columns database

### Install
Via Composer

```
composer require borsaco/doctrine-prefix-bundle
```

### Configuration example

You can configure prefixes and base naming strategy in config files:

```yaml
config/packages/doctrine_prefix.yaml

doctrine:
orm:
naming_strategy: Borsaco\DoctrinePrefixBundle\Doctrine\ORM\Mapping\PrefixNamingStrategy

doctrine_prefix:
table_prefix: bor_
column_prefix: sac_
naming_strategy:
class: 'Doctrine\ORM\Mapping\UnderscoreNamingStrategy'
arguments: ['CASE_LOWER', true]
```