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

[Feature] Implemented like doctrine/doctrine-bundle's ContainerRepositoryFactory. #30

Closed
wants to merge 10 commits into from
Closed

[Feature] Implemented like doctrine/doctrine-bundle's ContainerRepositoryFactory. #30

wants to merge 10 commits into from

Conversation

Moln
Copy link
Contributor

@Moln Moln commented Jun 30, 2020

Implemented ContainerRepositoryFactory . See #28

Diff with doctrine/doctrine-bundle's ContainerRepositoryFactory.

Documentation

Sorry, my not freely English, if the guide is an inappropriate hope that someone will correct.

@asgrim asgrim added enhancement New feature or request help wanted Extra attention is needed labels Jul 14, 2020
@asgrim
Copy link
Member

asgrim commented Jul 14, 2020

This looks +1 in principle, but I think we need some docs added in here on usage. Added help wanted label, maybe someone can contribute some docs :)

@asgrim asgrim added the WIP Work in progress - do not merge label Jul 14, 2020
@asgrim asgrim linked an issue Jul 14, 2020 that may be closed by this pull request
1 task
@asgrim asgrim changed the base branch from master to 3.0.x April 23, 2021 15:38
README.md Outdated

/** @var ContainerRepositoryFactory $respositoryFactory */
$respositoryFactory = $container->get(ContainerRepositoryFactory::class);
$respository2 = $respositoryFactory->getRepository($em, FooEntity::class);
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure I see the benefit of having this method of obtaining a repository, given the methods to retrieve $repository works out of the box, and $repository3 is already simple enough with any container anyway? Maybe I missed something? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Change the document for what the service injected.

…features/container-repository-factory

# Conflicts:
#	.travis.yml
#	src/DriverFactory.php
#	test/ConnectionFactoryTest.php
…tainer-repository-factory

# Conflicts:
#	composer.lock
@Moln Moln changed the base branch from 3.0.x to 3.4.x January 26, 2022 03:54
@Moln Moln closed this by deleting the head repository Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed WIP Work in progress - do not merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add some features from symfony's doctrine/doctrine-bundle?
2 participants