-
Notifications
You must be signed in to change notification settings - Fork 232
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
Conversation
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
@jmikola fixed |
Created a clean commit |
…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
…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')); |
There was a problem hiding this comment.
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)
@stof Thanks for the review, sorry if it takes so long time to fix. |
The parameter 'kernel.bundles' now is always required
Merged manually in 1bc023a. Thanks! |
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...).