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

Overriding fixtures #913

Open
umpirsky opened this issue May 8, 2023 · 2 comments
Open

Overriding fixtures #913

umpirsky opened this issue May 8, 2023 · 2 comments

Comments

@umpirsky
Copy link

umpirsky commented May 8, 2023

By creating config\packages\sylius_fixtures.yaml file as described in the docs https://docs.sylius.com/en/1.12/customization/fixtures.html#how-to-modify-the-existing-sylius-fixtures, sylius:fixtures:load loads fixtures from /home/umpirsky/Projects/glad.rs/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Resources/config/app/fixtures/shop_configuration.yaml and ones from config\packages\sylius_fixtures.yaml on top of them.

Is there a way to override them so it replaces them, not merge both?

Thanks.

@umpirsky
Copy link
Author

umpirsky commented May 8, 2023

I ended up creating a separate suite. But would be nice to be able to override default.

@namenyizso
Copy link

I had the same problem yesterday. I followed these instructions to solve the problem: https://stackoverflow.com/questions/75827099/sylius-and-overwriting-default-fixtures

But it can be good if we can override the fixtures as it was described in the documentations.

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