partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0c808ec3b2da77277dd619959aef3b647a377807
parent 46a80af932eddb4656330ad9cc37e410c310265a
Author: Felicitus <felicitus@felicitus.org>
Date:   Tue,  8 Sep 2015 20:13:32 +0200

Explicitely define the default connection to allow attachment of the event listener for all test database connections

Diffstat:
Mapp/config/config.yml | 29+++++++++++++----------------
1 file changed, 13 insertions(+), 16 deletions(-)

diff --git a/app/config/config.yml b/app/config/config.yml @@ -74,22 +74,19 @@ doctrine: orm: auto_generate_proxy_classes: %kernel.debug% - - entity_managers: - default: - auto_mapping: true - mappings: - model: - type: annotation - dir: %kernel.root_dir%/../src/backend/PartKeepr/ - prefix: PartKeepr - is_bundle: false - gedmo_tree: - type: annotation - prefix: Gedmo\Tree\Entity - dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity" - alias: GedmoTree # this one is optional and will default to the name set for the mapping - is_bundle: false + connection: default + mappings: + model: + type: annotation + dir: %kernel.root_dir%/../src/backend/PartKeepr/ + prefix: PartKeepr + is_bundle: false + gedmo_tree: + type: annotation + prefix: Gedmo\Tree\Entity + dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity" + alias: GedmoTree # this one is optional and will default to the name set for the mapping + is_bundle: false stof_doctrine_extensions: default_locale: en_US