Skip to content

Instantly share code, notes, and snippets.

@samplenull
Created April 10, 2019 18:00
Show Gist options
  • Save samplenull/12148abcca1014563414af646b32b0b5 to your computer and use it in GitHub Desktop.
Save samplenull/12148abcca1014563414af646b32b0b5 to your computer and use it in GitHub Desktop.
Generate fixture to entity with Alice Generate Bundle with specific Id

First set in src/Trappar/AliceGeneratorBundle/Resources/config/services.yml

trappar_alice_generator.metadata.chain_driver ... public: true

Then you can execute for specifi ID's like this:

generate:fixtures --entities="[ 'App\Entity\EntityName', ['id', ['2', '3'] ] ]" -o"fixtures/entity.yml"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment