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

Modify doctrine integration manner #285

Closed
wants to merge 4 commits into from
Closed

Conversation

issei-m
Copy link

@issei-m issei-m commented Sep 12, 2017

Fix #284

As I explained at above issue, current Doctrine integration way has issue that cache is invalidate every time on Symfony 3.3.
The direct cause of the problem seems to be DIC builder/compiler can't recognize EntityManager existence since it's never loaded unless it's not retrieved from built DIC itself.
And I sought out whether there's some workaround or not, but I could not.

However during I was looking down upon integration way around, I realized a fact that the tweaking EM of this bundle is just overriding its getRepository.
So I wanna introduce an another way of expanding this method here.

I repealed:

  • Inheritance the EMs DoctrineBundle registered using CG package

And I changed:

  • ContainerAwareRepositoryFactoryDecorator: implementing RepositoryFactory and wrapping the factory DoctrineBundle structured
    and doing integration with ORM something what this bundle was doing originally (using CG package)

Drop support older (< 2.4) doctrine implicitly

The RepositoryFactory of Doctrine/ORM capability was introduced in 2.4, so we cannot support compatibility with 2.3 (or older) anymore.

@greg0ire
Copy link
Contributor

I'm trying to fix original CI in #289

@greg0ire
Copy link
Contributor

greg0ire commented Oct 3, 2017

It's merged, you may rebase (or simply closing and reopening should be enough)

@issei-m
Copy link
Author

issei-m commented Oct 4, 2017

@greg0ire Thank you. I've done rebase.

@greg0ire
Copy link
Contributor

greg0ire commented Oct 4, 2017

It reveals you broke the tests. Please fix them.

@issei-m issei-m changed the title Modify doctrine integration manner [wip] Modify doctrine integration manner Oct 4, 2017
@issei-m
Copy link
Author

issei-m commented Oct 4, 2017

I'm starting to fix tests, so please wait for it ;)

@greg0ire
Copy link
Contributor

greg0ire commented Oct 4, 2017

I'm not in a hurry ;)

@issei-m issei-m changed the title [wip] Modify doctrine integration manner Modify doctrine integration manner Oct 10, 2017
@issei-m
Copy link
Author

issei-m commented Oct 10, 2017

I've done fixing the broken CI, so please reconsider it. Thanks.

@issei-m issei-m closed this Sep 10, 2020
@issei-m issei-m deleted the fix-284 branch September 10, 2020 08:18
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.

Container cache miss occurs on tests since Symfony 3.2.
2 participants