Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a way to enable auto_mapping option using multipe document managers #267

Closed
wants to merge 6 commits into from
Closed

Conversation

goetas
Copy link
Member

@goetas goetas commented Sep 1, 2014

This PR adds to DoctrineMongoDBBundle the same functionality of doctrine/DoctrineBundle#60

It requires the approval of symfony/symfony#11815 and would require a new min-version constraint for symfony/doctrine-bridge (eg: ~2.6 if merged in SF 2.6...).

@@ -8,7 +8,7 @@
* (c) Fabien Potencier <[email protected]>
* (c) Doctrine Project
*
* For the full copyright and license information, please view the LICENSE
* For the full copyright and license infodmation, please view the LICENSE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a simple typo fix. Can you break it out into a separate commit or, better yet, its own PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmikola this was not fixing a typo, but introducing it

@goetas
Copy link
Member Author

goetas commented Sep 3, 2014

@jmikola fixed

@goetas
Copy link
Member Author

goetas commented Sep 4, 2014

Created a clean commit

fabpot added a commit to symfony/symfony that referenced this pull request Sep 23, 2014
…ping feature (goetas)

This PR was squashed before being merged into the 2.6-dev branch (closes #11815).

Discussion
----------

Added some methods to improve the handling of auto_mapping feature

| Q             | A
| ------------- | ---
| Bug fix?      |no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?  | yes
| Fixed tickets | doctrine/DoctrineBundle#60
| License       | MIT

This PR is a part that is required by:
* doctrine/DoctrineMongoDBBundle#267
* doctrine/DoctrineBundle#321

The proposed PRs are an alternative to #11650 and doctrine/DoctrineBundle#322

Commits
-------

2e30a43 Added some methods to improve the handling of auto_mapping feature
fabpot added a commit to symfony/doctrine-bridge that referenced this pull request Sep 23, 2014
…ping feature (goetas)

This PR was squashed before being merged into the 2.6-dev branch (closes #11815).

Discussion
----------

Added some methods to improve the handling of auto_mapping feature

| Q             | A
| ------------- | ---
| Bug fix?      |no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?  | yes
| Fixed tickets | doctrine/DoctrineBundle#60
| License       | MIT

This PR is a part that is required by:
* doctrine/DoctrineMongoDBBundle#267
* doctrine/DoctrineBundle#321

The proposed PRs are an alternative to symfony/symfony#11650 and doctrine/DoctrineBundle#322

Commits
-------

2e30a43 Added some methods to improve the handling of auto_mapping feature
@@ -62,6 +62,8 @@ public function load(array $configs, ContainerBuilder $container)
// load the connections
$this->loadConnections($config['connections'], $container);

$config['document_managers'] = $this->fixManagersAutoMappings($config['document_managers'], $container->getParameter('kernel.bundles'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the BC layer for older Symfony versions too (like in other Doctrine bundles)

@goetas
Copy link
Member Author

goetas commented Apr 4, 2015

@stof Thanks for the review, sorry if it takes so long time to fix.

Is https://github.com/goetas/DoctrineMongoDBBundle/commit/97a247825a3961e6957b6a79cc55abd93a587854 ok?

The parameter 'kernel.bundles' now is always required
@alcaeus alcaeus added this to the 3.1 milestone Dec 12, 2015
@alcaeus
Copy link
Member

alcaeus commented Dec 26, 2015

Merged manually in 1bc023a. Thanks!

@alcaeus alcaeus closed this Dec 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants