-
Notifications
You must be signed in to change notification settings - Fork 35
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
Conversation
This looks +1 in principle, but I think we need some docs added in here on usage. Added |
README.md
Outdated
|
||
/** @var ContainerRepositoryFactory $respositoryFactory */ | ||
$respositoryFactory = $container->get(ContainerRepositoryFactory::class); | ||
$respository2 = $respositoryFactory->getRepository($em, FooEntity::class); |
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.
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? 🤔
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.
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
Update docs.
Implemented
ContainerRepositoryFactory
. See #28Diff with
doctrine/doctrine-bundle
'sContainerRepositoryFactory
.ServiceEntityRepositoryInterface
.Documentation
Sorry, my not freely English, if the guide is an inappropriate hope that someone will correct.