[BUGFIX] Move doctrine initalization to connect() method 32/54432/4
authorAlexander Stehlik <alexander.stehlik@gmail.com>
Wed, 18 Oct 2017 02:40:16 +0000 (04:40 +0200)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Tue, 31 Oct 2017 15:39:22 +0000 (16:39 +0100)
commit8c40079dd3f2140b77a381ec20fcc595d7a76419
treebd8c64fbc3c6d994ae946732515f4128dbd26981
parentd9d8f19a0b1ba36bd35dca77afc1047b50f20de9
[BUGFIX] Move doctrine initalization to connect() method

The event and custom type initalization of doctrine is moved
to an overwritten connect() method in the Connection class.

This prevents a premature establishment of a database connection
by calls to getDatabasePlatform().

This fixes the page unavailable during the connectToDB() in
the Frontend request handling.

Change-Id: Id6087002c7cbb9ed3938c4627d63b77515a7108f
Releases: master, 8.7
Resolves: #82795
Reviewed-on: https://review.typo3.org/54432
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/core/Classes/Database/Connection.php
typo3/sysext/core/Classes/Database/ConnectionPool.php
typo3/sysext/core/Classes/Database/Schema/Parser/TableBuilder.php