This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bridge/Doctrine
Samuel ROZE 67e1709205 feature #31061 [BridgeDoctrineMessenger] Doctrine ping connection middleware (insidestyles)
This PR was squashed before being merged into the 4.3-dev branch (closes #31061).

Discussion
----------

[BridgeDoctrineMessenger] Doctrine ping connection middleware

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

- Check and reconnect if mysql has gone away:

        <service id="messenger.middleware.doctrine_ping_connection" class="Symfony\Bridge\Doctrine\Messenger\DoctrinePingConnectionMiddleware" public="false">
            <argument type="service" id="doctrine" />
        </service>

- Close and save opened connections (not active worker):

        <service id="messenger.middleware.doctrine_close_connection" class="Symfony\Bridge\Doctrine\Messenger\DoctrineCloseConnectionMiddleware" public="false">
            <argument type="service" id="doctrine" />
        </service>

Commits
-------

6fd9f6a859 [BridgeDoctrineMessenger] Doctrine ping connection middleware
2019-04-28 16:15:24 +01:00
..
CacheWarmer [DI] minor docblock fixes 2017-10-24 13:40:19 +02:00
DataCollector fixed CS 2019-01-16 19:35:49 +01:00
DataFixtures [DI] minor docblock fixes 2017-10-24 13:40:19 +02:00
DependencyInjection Merge branch '3.4' into 4.2 2019-02-23 16:17:42 +01:00
Form [DoctrineBridge] Deprecated using IdReader when optimization is not possible 2019-04-07 15:30:06 +02:00
Logger switched array() to [] 2019-01-16 10:39:14 +01:00
Messenger [BridgeDoctrineMessenger] Doctrine ping connection middleware 2019-04-28 16:15:12 +01:00
PropertyInfo throw TypeErrors to prepare for type hints in 5.0 2019-03-19 22:07:50 +01:00
Security Merge branch '3.4' into 4.2 2019-02-23 16:17:42 +01:00
Test [DoctrineBridge] Unique mapping setting is optional 2019-04-22 11:07:01 +02:00
Tests feature #31061 [BridgeDoctrineMessenger] Doctrine ping connection middleware (insidestyles) 2019-04-28 16:15:24 +01:00
Validator [DoctrineBridge] Unique mapping setting is optional 2019-04-22 11:07:01 +02:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md [BridgeDoctrineMessenger] Doctrine ping connection middleware 2019-04-28 16:15:12 +01:00
composer.json Move doctrine/collections to an optional dep in doctrine-bridge 2019-04-06 20:02:40 +02:00
ContainerAwareEventManager.php switched array() to [] 2019-01-16 10:39:14 +01:00
LICENSE update year in license files 2019-01-01 14:45:19 +01:00
ManagerRegistry.php [DoctrineBridge] [DX] Update exception text in ManagerRegistry::resetService to avoid confusion. 2019-04-15 11:42:18 +02:00
phpunit.xml.dist Bump phpunit XSD version to 5.2 2018-11-11 12:18:13 +01:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00
RegistryInterface.php Fixed minor typos 2018-12-28 12:28:01 +01:00

Doctrine Bridge

Provides integration for Doctrine with various Symfony components.

Resources