Refactored the validator integration
Fix DoctrineMongoDBTypeGuesser to use "em" instead of "document_manager" option as needed now by the Doctrine Bridge use.
Typo in classname for EntityUserProvider
Merge pull request #71 from henrikbjorn/config-typo

Typo in classname for EntityUserProvider
Merge pull request #70 from dunglas/em-fix

Fix DoctrineMongoDBTypeGuesser to use "em" instead of "document_manager"
restored document_manager option on form type
Merge pull request #73 from doctrine/document-manager-option

restored document_manager option on form type
[Form] Update MongoDBQueryBuilderLoader for bridge interface

This implements an additional interface method introduced in symfony/symfony#3156.
Merge pull request #74 from jmikola/entity-choice-list

[Form] Update MongoDBQueryBuilderLoader for bridge interface
[Form] ChoiceList query builder should return arrays

ObjectChoiceList::initialize() is able to handle a Traversable object, which means getEntities() may safely return a cursor, but EntityChoiceList::getChoicesForValues() must return an array. To be consistent, return an array from both of these methods.

For what it's worth, the ORM seems to natively return arrays for the corresponding methods in ORMQueryBuilderLoader.

Note: Since ChoiceListInterface specifies that the arrays have "indices with ascending, 0-based numeric keys", strip the MongoCursor's document identifier keys by passing the results through array_values(). Ultimately, toArray() should be enhanced to allow passing a $use_keys argument to iterator_to_array().
Merge pull request #68 from stof/validator

Validator
Update DI extension test to expect Doctrine bridge's Validator class

See: 3455368f71b1aff28602df64f9291be252b7c730
Remove DoctrineFixturesBundle dependency in load command

See: symfony/symfony#3328
[DependencyInjection] Create event managers per connection (BC break)

This commit relies upon new Doctrine bridge classes in symfony/symfony#3434.

Previously, no event manager was given as a constructor argument for a Connection service, which lead to a new object being created internally. Since that event manager was not injected and wasn't registered with the service container, the compiler pass was unable to assign listeners on core doctrine-mongdb events.

This commit makes the event manager creation consistent with DoctrineBundle. Event managers now exist per connection, and document managers use the event manager of their connection.

BC break: the syntax for tags has changed. Previously, listeners were tagged as "doctrine.odm.mongodb.%s_event_listener", with the DM's configuration name as a placeholder. The "doctrine.common.event_listener" tag was also supported for global listeners. Listeners must now be tagged as "doctrine.odm.mongodb.event_listener". Tags may use a "connection" attribute to target a specific connection by name. Additionally, "priority" is also supported. This change applies to event subscribers as well.
Merge pull request #80 from jmikola/connection-event-manager

Use event manager and registration compiler pass from Doctrine Bridge
Document new method of registering event listeners and subscribers
Create changelog for 2.1 to document event listener registration changes
Fix naming and aliasing of event manager services

Due to a bug in 43e34f42afc38f838c61b7822ff40c8d1e4e1215, the event manager services were being named after the default database name for the document manager. The alias for the default document manager's event manager was also incorrect.