nalogka/doctrine-init-bundle

Installs: 748

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.1.0 2018-03-20 11:54 UTC

This package is auto-updated.

Last update: 2024-04-27 18:21:07 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.