nalogka / doctrine-init-bundle
Installs: 751
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^5.6 || ^7.0
This package is auto-updated.
Last update: 2025-03-27 20:07:18 UTC
README
Symfony bundle for executing some initial SQLs right after database connection has been established.
Installing
composer require nalogka/doctrine-init-bundle
After that you can set up initial sql commands in project configuration:
nalogka_connection_init: initial_sqls: - "SET SESSION wait_timeout = 3600" # setting up mysql inactivity timeout (sec)
Defined SQLs will be executed right after the connection has been established.