Commits on Mar 1, 2012
  1. @jmikola

    Fix naming and aliasing of event manager services

    Due to a bug in 43e34f4, 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.
    jmikola committed Mar 1, 2012
  2. @jmikola
  3. @jmikola
  4. @jwage

    Merge pull request #80 from jmikola/connection-event-manager

    Use event manager and registration compiler pass from Doctrine Bridge
    jwage committed Feb 29, 2012
Commits on Feb 27, 2012
  1. @jmikola

    [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.
    jmikola committed Feb 23, 2012
  2. @jmikola
Commits on Feb 25, 2012
  1. @jmikola
  2. @jmikola

    Merge pull request #68 from stof/validator

    Validator
    jmikola committed Feb 25, 2012
Commits on Feb 14, 2012
  1. @jmikola

    [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().
    jmikola committed Feb 14, 2012
Commits on Feb 1, 2012
  1. @jwage

    Merge pull request #74 from jmikola/entity-choice-list

    [Form] Update MongoDBQueryBuilderLoader for bridge interface
    jwage committed Jan 31, 2012
Commits on Jan 31, 2012
  1. @jmikola

    [Form] Update MongoDBQueryBuilderLoader for bridge interface

    This implements an additional interface method introduced in symfony/symfony#3156.
    jmikola committed Jan 31, 2012
Commits on Jan 11, 2012
  1. @jwage

    Merge pull request #73 from doctrine/document-manager-option

    restored document_manager option on form type
    jwage committed Jan 11, 2012
Commits on Jan 9, 2012
  1. @kriswallsmith
  2. @kriswallsmith

    Merge pull request #70 from dunglas/em-fix

    Fix DoctrineMongoDBTypeGuesser to use "em" instead of "document_manager"
    kriswallsmith committed Jan 9, 2012
Commits on Dec 29, 2011
  1. @beberlei

    Merge pull request #71 from henrikbjorn/config-typo

    Typo in classname for EntityUserProvider
    beberlei committed Dec 29, 2011
  2. @henrikbjorn
Commits on Dec 26, 2011
  1. @dunglas

    Fix DoctrineMongoDBTypeGuesser to use "em" instead of "document_manag…

    …er" option as needed now by the Doctrine Bridge use.
    dunglas committed Dec 26, 2011
Commits on Dec 23, 2011
  1. @stof
  2. @jwage

    Merge pull request #38 from real-chocopanda/add_no_backup_option

    [Generator] add the --no-backup option to prevent generating backup file
    jwage committed Dec 22, 2011
  3. @jwage

    Merge pull request #67 from stof/forms

    Refactored the form integration to use the bridge
    jwage committed Dec 22, 2011
  4. @jwage

    Merge pull request #69 from stof/validation_initializer

    Validation initializer
    jwage committed Dec 22, 2011
Commits on Dec 22, 2011
  1. @stof
  2. @stof
  3. @stof
  4. @jwage

    Merge pull request #66 from stof/user_provider

    Added a user provider
    jwage committed Dec 22, 2011
  5. @stof

    Added a user provider

    stof committed Dec 22, 2011
  6. @jwage

    Merge pull request #58 from weaverryan/readme_config_pool

    [Doc] Adding note about connecting to a pool of servers on one connectio...
    jwage committed Dec 21, 2011
Commits on Dec 20, 2011
  1. @kriswallsmith

    fixed class name

    kriswallsmith committed Dec 20, 2011
  2. @kriswallsmith

    Merge branch '2.0'

    Conflicts:
    	Tests/Form/Type/DocumentTypeTest.php
    	Tests/Validator/Constraints/UniqueValidatorTest.php
    kriswallsmith committed Dec 20, 2011
  3. @kriswallsmith
  4. @kriswallsmith
  5. @kriswallsmith

    Merge branch '2.0'

    Conflicts:
    	Security/DocumentUserProvider.php
    	Tests/Fixtures/Security/User.php
    	Tests/Security/DocumentUserProviderTest.php
    	composer.json
    kriswallsmith committed Dec 20, 2011
  6. @kriswallsmith
  7. @jmikola

    Merge pull request #65 from stof/doctrine-move

    Migrate from Symfony namespace to Doctrine
    
    Also closes #64
    jmikola committed Dec 20, 2011
Commits on Dec 19, 2011
  1. @stof

    Removed useless use statements

    stof committed Dec 19, 2011