[BUGFIX] Move doctrine initalization to connect() method 12/54512/2
authorAlexander Stehlik <alexander.stehlik@gmail.com>
Wed, 18 Oct 2017 02:40:16 +0000 (04:40 +0200)
committerAndreas Wolf <andreas.wolf@typo3.org>
Fri, 22 Dec 2017 16:31:39 +0000 (17:31 +0100)
commit84f2552553deb5c6c2ec4cd3c60cb19e43427d5a
tree58c48a64c5e03ac25423064206e001a699e208e9
parent73372e418e2dd2763caf5f4f3bfc3800aaf02717
[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/54512
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Alexander Stehlik <alexander.stehlik@gmail.com>
Tested-by: Alexander Stehlik <alexander.stehlik@gmail.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@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