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

Can I specify $persistentManagerName for repository? #447

Open
kerstvo opened this issue Apr 11, 2023 · 3 comments
Open

Can I specify $persistentManagerName for repository? #447

kerstvo opened this issue Apr 11, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@kerstvo
Copy link

kerstvo commented Apr 11, 2023

Hi! Thanks for awesome library!

Is there any possibility to specify $persistentManagerName here https://github.com/zenstruck/foundry/blob/1.x/src/Configuration.php#L189?

@nikophil
Copy link
Member

Hello,

I don't see any problem to add this as a new parameter to Configuration::repositoryFor()

I'm just wondering something: the $objectOrClass here is not enough? does that mean we can have multiple managers for the same entity class?

@kerstvo
Copy link
Author

kerstvo commented Apr 11, 2023

As I see here https://symfony.com/doc/current/doctrine/multiple_entity_managers.html - yes
One entity can be managed by more than one entity manager

Or maybe I misunderstood something.

@nikophil
Copy link
Member

ok, I just learnt something, I was thinking it was not possible!

@nikophil nikophil added the enhancement New feature or request label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

2 participants