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

Allow to load fixtures that have no group #291

Open
magnetik opened this issue Aug 23, 2019 · 0 comments · May be fixed by #292
Open

Allow to load fixtures that have no group #291

magnetik opened this issue Aug 23, 2019 · 0 comments · May be fixed by #292

Comments

@magnetik
Copy link

Hi,

When starting to use the groups, I needed to load all fixtures BUT not the one I've put in a group (that are specific fixtures that are used for some tests).

For instance when using the serialization groups in JMS Serializer, all objects that have no groups are put in a group Default.
See : https://jmsyst.com/libs/serializer/master/cookbook/exclusion_strategies#overriding-groups-of-deeper-branches-of-the-graph

It would work like this:

  • doctrine:fixtures:load --group=Default: load all fixtures that have no group
  • doctrine:fixtures:load --group=Default --group=User: load all fixtures that have no group and the User group
  • doctrine:fixtures:load --group=User: load only the User group

WDYT ?

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

Successfully merging a pull request may close this issue.

1 participant