MakFly

symfony:doctrine-fetch-modes

Evolve Symfony Doctrine models and schema safely with integrity, performance, and rollout discipline. Use for doctrine fetch modes tasks.

MakFly 144 13 Updated 3mo ago

Resources

1
GitHub

Install

npx skillscat add makfly/superpowers-symfony/symfony-doctrine-fetch-modes

Install via the SkillsCat registry.

SKILL.md

Doctrine Fetch Modes (Symfony)

Use when

  • Designing entity relations or schema evolution.
  • Improving Doctrine correctness/performance.

Default workflow

  1. Model ownership/cardinality and transactional boundaries.
  2. Apply mapping/schema changes with migration safety.
  3. Tune fetch/query behavior for hot paths.
  4. Verify lifecycle behavior with targeted tests.

Guardrails

  • Keep owning/inverse sides coherent.
  • Avoid destructive migration jumps in one release.
  • Eliminate accidental N+1 and over-fetching.

Progressive disclosure

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

Output contract

  • Entity/migration changes.
  • Integrity and performance decisions.
  • Validation outcomes and rollback notes.

References

  • reference.md
  • docs/complexity-tiers.md