Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
makfly avatar

Symfony:doctrine Transactions Skill

  • 440 installs
  • 190 repo stars
  • Updated August 6, 2026
  • makfly/superpowers-symfony

symfony:doctrine-transactions is a Claude Code skill that wraps multi-step Doctrine ORM 3 writes in Symfony services with explicit transaction boundaries, locking, and migration-safe schema evolution.

About

symfony:doctrine-transactions is one of 44 skills in the MakFly superpowers-symfony Claude Code plugin for Symfony 7.4 LTS and 8.x with Doctrine ORM 3. It guides modeling ownership and cardinality, defining transaction boundaries around use-case intents, applying mapping changes with reversible migrations, tuning fetch behavior to avoid N+1 queries, and verifying lifecycle events with targeted tests. The default workflow moves from boundary design through migration safety to hot-path query tuning and test validation. Developers reach for symfony:doctrine-transactions when entity updates, deletes, and event side effects must commit atomically or roll back on failure, or when optimistic and pessimistic locking is required in Symfony services.

  • EntityManager transaction control
  • Rollback on domain exceptions
  • Unit-of-work flush timing
  • Nested transaction pitfalls
  • Testable service boundaries

Symfony:Doctrine Transactions by the numbers

  • 440 all-time installs (skills.sh)
  • Ranked #136 of 922 Databases skills by installs in the Skillselion catalog
  • Data as of Aug 11, 2026 (Skillselion catalog sync)
npx skills add https://github.com/makfly/superpowers-symfony --skill symfonydoctrine-transactions

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs440
repo stars190
Last updatedAugust 6, 2026
Repositorymakfly/superpowers-symfony

How do you handle Doctrine transactions in Symfony services?

Wrap multi-step Doctrine writes in Symfony services with explicit transactions so entity updates, deletes, and event side effects commit atomically or roll back on failure.

Who is it for?

Symfony backend engineers evolving Doctrine ORM 3 entities who need safe transaction boundaries, locking, and migration rollouts on Symfony 7.4+.

Skip if: Teams writing only read-only queries or pure HTTP functional tests without persistence changes should use doctrine-fetch-modes or functional-tests instead.

When should I use this skill?

The developer wraps multi-step Doctrine writes, designs transaction boundaries, adds optimistic locking, or needs migration-safe schema changes in Symfony.

What you get

Entity and migration diffs, transaction boundary decisions, integrity notes, and targeted test validation results

  • Transaction-wrapped service methods
  • Migration scripts with rollback notes
  • Targeted integration test coverage

By the numbers

  • One of 44 skills in the superpowers-symfony Claude Code plugin
  • Targets Symfony 7.4 LTS and 8.x with Doctrine ORM 3

Files

SKILL.mdMarkdownGitHub ↗

Doctrine Transactions (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

Related skills

How it compares

Pick symfony:doctrine-transactions over doctrine-relations when writes must commit atomically with locking and migration discipline—not just association mapping.

FAQ

What Symfony versions does symfony:doctrine-transactions support?

symfony:doctrine-transactions ships in superpowers-symfony, which targets Symfony 7.4 LTS and 8.x with Doctrine ORM 3 and API Platform v4. Legacy Symfony 6.4 LTS is also supported by the plugin.

What does symfony:doctrine-transactions output?

symfony:doctrine-transactions delivers entity and migration changes, integrity and performance decisions, validation outcomes from targeted tests, and rollback notes for destructive schema steps.

When should transaction boundaries be defined?

symfony:doctrine-transactions advises defining boundaries around use-case intents in Symfony services—not around low-level ORM flush calls—so entity updates, deletes, and side effects commit or roll back together.

Databasesbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.