skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
dev-toolings/superpowers-symfony117 installs

doctrine-fixtures-foundry

Create test data with Zenstruck Foundry v2 factories (PersistentObjectFactory, real objects); define states, sequences, and relationships

How do I install this agent skill?

npx skills add https://github.com/dev-toolings/superpowers-symfony --skill doctrine-fixtures-foundry
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides instructions and reference material for using the Zenstruck Foundry v2 library to create Doctrine test fixtures in Symfony projects. It includes standard installation commands using Composer and code examples for factories, stories, and tests. No security issues were detected.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Doctrine Fixtures Foundry (Symfony)

Use when

  • Creating test or development data for Doctrine entities.
  • Writing a Foundry factory, a named state, a sequence, or a story.
  • Building related entities for a test without hand-written setup.
  • Migrating legacy Foundry v1 factories or ->object() calls to v2.

Default workflow

  1. Generate a factory per entity and keep defaults() to required and unique fields.
  2. Express each variation as an immutable named state (admin(), published()).
  3. Let factories create default relations with OtherFactory::new().
  4. Group shared scenarios in stories, and reset the database per test class.
  5. Assert on real objects and on the repository through Factory::assert().

Guardrails

  • Use self::faker()->unique() for every unique column, or tests collide.
  • Do not call ->object() or ->_real(): v2 factories return real objects.
  • Seed Faker (FOUNDRY_FAKER_SEED) when a failure must be reproducible.
  • Do not build a factory for trivial data a test can create inline.

Progressive disclosure

  • Use this file for execution posture and risk controls.
  • Open references when deep implementation details are needed.

Output contract

  • Factories with minimal defaults, named states and relation defaults.
  • Stories for shared scenarios, when more than one test needs them.
  • Test setup wired with the Foundry extension and #[ResetDatabase].

References

  • reference.md

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/dev-toolings/superpowers-symfony/doctrine-fixtures-foundry">View doctrine-fixtures-foundry on skillZs</a>