doctrine-patterns

Community

Master Doctrine patterns for Symfony data.

AuthorAratKruglik
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Doctrine ORM best practices for Symfony help teams avoid common pitfalls such as N+1 queries, brittle migrations, and inconsistent entity mappings by codifying standards around mapping, queries, and migrations.

Core Features & Use Cases

  • Entity mapping with attributes: keep mapping as the source of truth and generate migrations from it.
  • Parameterized DQL / QueryBuilder: promote safe, injective queries and prevent SQL injection.
  • N+1 prevention: use fetch joins and proper fetch strategies.
  • Relations management: configure cascade, fetch, and orphanRemoval for robust aggregates.
  • Migrations & lifecycle events: automate migrations with lifecycle hooks for auditability.

Quick Start

Start applying these patterns by configuring your Symfony entities with attributes, validating queries, and enabling migrations to keep schema in sync.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: doctrine-patterns
Download link: https://github.com/AratKruglik/antigravity-sdlc/archive/main.zip#doctrine-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.