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

Make it possible to auto map with multiple EMs #322

Closed
wants to merge 1 commit into from

Conversation

lsmith77
Copy link
Member

also requires symfony/symfony#11650 fixes #60

@goetas
Copy link
Member

goetas commented Aug 11, 2014

hi, i'm also working on this #321

@lsmith77
Copy link
Member Author

ah doh. well lets hope some solution makes it in. note my solution might need some version checks to prevent issues when using older versions of symfony.

@goetas
Copy link
Member

goetas commented Aug 11, 2014

@lsmith77 my solution seems simpler... and do not change the signature of protected methods (that can cause some bc breaks...). I will try to improve today

*/
protected function loadOrmEntityManager(array $entityManager, ContainerBuilder $container)
protected function loadOrmEntityManager(array $entityManager, ContainerBuilder $container, array $mappedBundles)
Copy link
Member

Choose a reason for hiding this comment

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

$mappedBundles should be optional for BC, shouldn't it?

Copy link
Member Author

Choose a reason for hiding this comment

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

i made it optional inside symfony but didnt bother inside the bundle itself

@joschi127
Copy link

👍 would be really great if this one or #321 would be accepted .-) thanks a lot!

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
@lsmith77
Copy link
Member Author

closing in favor of #321

@lsmith77 lsmith77 closed this Sep 23, 2014
@lsmith77 lsmith77 deleted the auto_map_with_many_em branch September 23, 2014 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A way to enable auto_mapping with multipe Entity Manager
4 participants