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
Fabien Potencier 4c1cea7093 merged branch jmikola/doctrine-lazy-event-manager (PR #3434)
Commits
-------

71493a2 [DoctrineBridge] Compiler pass for registering event listeners/subscribers
f15dde6 [DoctrineBridge] ContainerAwareEventManager class

Discussion
----------

[DoctrineBridge] ContainerAwareEventManager class

```
Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
```

[![Build Status](https://secure.travis-ci.org/jmikola/symfony.png?branch=doctrine-lazy-event-manager)](http://travis-ci.org/jmikola/symfony)

This allows services to be registered (and lazily loaded) with Doctrine Common's EventManager.

It is ported from @schmittjoh's previous commits here: doctrine/DoctrineBundle#23. I'd like to integrate this with DoctrineMongoDBBundle, so the Bridge once again seemed like an ideal alternative to duplicating code.

---------------------------------------------------------------------------

by jmikola at 2012-02-23T20:37:51Z

Per conversation with @stof in doctrine/DoctrineBundle#23, I'm also going to integrate the compiler pass (an abstract version both bundles can use) into this PR.

---------------------------------------------------------------------------

by jmikola at 2012-02-23T21:56:47Z

Just realized there's an issue with the naming assumptions, since Doctrine ORM uses "doctrine" as its registry service ID but "doctrine.dbal" as its event manager prefix. Fixing.
2012-03-01 01:01:15 +01:00
..
CacheWarmer [DoctrineBridge] Updated the code to use the new registry 2011-10-16 14:57:14 +02:00
DataCollector [DoctrineBridge] Refactored the query sanitization in the collector 2012-01-23 10:57:46 +01:00
DataFixtures [DoctrineBridge] Rename data fixtures loader class 2012-02-11 16:48:09 -05:00
DependencyInjection [DoctrineBridge] Compiler pass for registering event listeners/subscribers 2012-02-23 17:50:43 -05:00
Form [Form] Improved FormType::getDefaultOptions() to see default options defined in parent types 2012-02-07 10:51:21 +01:00
HttpFoundation Fixed \SessionHandlerInterface in DbalSessionStorage 2012-02-23 20:02:31 +01:00
Logger [DoctrineBridge][DoctrineBundle] Refactored the DBAL logging 2011-12-16 14:57:00 +01:00
Security/User Removed useless use statement 2011-12-22 16:14:18 +01:00
Validator Change the array access used in UniqueEntityValidator 2012-02-06 14:00:20 +01:00
composer.json Removed version field 2012-02-27 09:59:20 +01:00
ContainerAwareEventManager.php [DoctrineBridge] ContainerAwareEventManager class 2012-02-23 13:17:44 -05:00
ManagerRegistry.php fixed getting the alias for a namespace 2011-09-25 14:23:16 +02:00
README.md tweaked the README files 2011-12-18 14:22:28 +01:00
RegistryInterface.php [DoctrineBridge] fixed some CS 2011-12-13 10:22:12 +01:00

Doctrine Bridge

Provides integration for Doctrine with various Symfony2 components.

Resources

Unit tests:

https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Bridge/Doctrine