tavvet/tavvet-doctrine-prefix-bundle

Bundle for Symfony5 to add a prefix to tables and columns database

Installs: 6 691

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/tavvet/tavvet-doctrine-prefix-bundle

v1.3.0 2024-06-22 01:40 UTC

This package is not auto-updated.

Last update: 2025-10-11 07:57:30 UTC


README

Configuration example

You can configure prefixes and base naming strategy in app/config/config.yml

doctrine:
    # ...
    orm:
        # ...
        naming_strategy: tavvet_doctrine_prefix.prefix_naming_strategy

tavvet_doctrine_prefix:
    table_prefix: t_ # default ''
    column_prefix: c__ # default ''
    naming_strategy: # base naming strategy
        type: doctrine.orm.naming_strategy.underscore # default - 'doctrine.orm.naming_strategy.underscore'
        arguments: [] # Constructor arguments for base naming strategy, default = []