nalogka/doctrine-init-bundle

Maintainers

Package info

github.com/nalozhka/doctrine-init-bundle

Type:symfony-bundle

pkg:composer/nalogka/doctrine-init-bundle

Statistics

Installs: 752

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-02-27 22:02:25 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.