I'm trying to add a prefix to all the doctrine tables based on these pages: docs.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/sql-table-prefixes.html and stackoverflow.com/questions/7504073/how-to-setup-table-prefix-in-symfony2
I'm also using dependency injection to use the configuration for the prefix definition. symfony.com/doc/current/service_container/definitions.html and symfony.com/doc/current/bundles/configuration.html
Unfortunatly I'm not able to have the tables prefixed using the value defined in the configuration. But when I manually change the value of the argument in the service definition, it is working.
My project is hosted here: https://github.com/GrenobleSwing/API
See files:
- src/GS/ApiBundle/Resources/config/services.yml
- src/GS/ApiBundle/EventSubscriber/TablePrefixSubscriber.php
- src/GS/ApiBundle/DependencyInjection/Configuration.php
- src/GS/ApiBundle/DependencyInjection/GSApiExtension.php
Thanks in advance for your help.
Julien
gs_api
root name here: github.com/GrenobleSwing/API/blob/master/src/GS/ApiBundle/…. If not, what's in$config
? – Mateusz Sip