Skip to content

Feature request: Pass group (or groups) that were used to call the fixture #372

@AntonioCS

Description

@AntonioCS

I have a fixture that I plan to use for 2 groups.

The issue is that I would like to load different data sets depending on what group was called.
Currently the group is not passed to the fixture.

I believe this feature might be useful for default settings that may vary from dev to production.

So having the group name would make this simple to do.

Possible implementation:

public function load(ObjectManager $manager, ?array $groups = null) : void

It would be an empty array if no groups are passed but if there were groups it would just contain all the groups used.

Edit: Updated example code as not to be BC break ($groups defaults to null)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions