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

Does nelmio/alice work for multi database fixtures ? #1109

Open
Kleinast opened this issue Apr 19, 2022 · 2 comments
Open

Does nelmio/alice work for multi database fixtures ? #1109

Kleinast opened this issue Apr 19, 2022 · 2 comments

Comments

@Kleinast
Copy link

Hi there,

My project use 3 databases, is it possible to use this bundle with that contraint ?
I see in command i can set --manager, witch will be great to target wanted database (I have 1 em by database) but I'm confuse with term bundle witch for me is for very old symfony. Can I config or have command option to told alice to load target subfolder of my fixtures folder with this manager and do it for the 3 db ?

Thx in advance

@theofidry
Copy link
Member

I'm confuse with term bundle witch for me is for very old symfony

I bundle is a small Symfony (or more accurately symfony/framework-bundle layer which allows to register services & config to the container. So it is still quite up to date.

Can I config or have command option to told alice to load target subfolder of my fixtures folder with this manager and do it for the 3 db ?

I think for the best level of flexibility, you are better of writing your own command. There should be a few examples from https://github.com/theofidry/AliceBundle.

I also invite you to check this section which can help out a bit to better understand where to find what.

@Kleinast
Copy link
Author

Kleinast commented Jul 2, 2022

Thx a lot for the infos, i'll look into it

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

No branches or pull requests

2 participants