doctrine-mapping

Standardize Doctrine entity and aggregate mappings with PHP 8 attributes.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/dairectiv/dairectiv --skill doctrine-mapping
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: doctrine-mapping
Source: https://github.com/dairectiv/dairectiv/tree/main/.claude/skills/doctrine-mapping
Command: npx skills add https://github.com/dairectiv/dairectiv --skill doctrine-mapping

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill codifies Doctrine entity and aggregate mapping conventions to ensure consistency across domains, avoiding ad-hoc, error-prone mappings.

Core Features & Use Cases

  • Establishes consistent naming strategies and attribute-based mappings for entities, aggregates, and relationships.
  • Guides typing, table and column naming, and relationship ownership across bounded contexts.
  • Use Case: when adding a new entity or relationship, apply these conventions to generate aligned domain models and database schemas.

Quick Start

Provide a new Doctrine-mapped entity class example using PHP 8 attributes and follow the conventions outlined.

Frequently Asked Questions about doctrine-mapping

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize Doctrine ORM entity mappings for consistent domain modeling?▼

Standardize Doctrine ORM mappings by applying explicit field mappings, naming strategies, and relationship annotations using PHP 8 attributes to ensure consistency across bounded contexts and avoid ad-hoc configurations.

What is the best way to configure Doctrine relationships and naming strategies across bounded contexts?▼

Configure Doctrine relationships by defining explicit ownership and applying consistent naming strategies across bounded contexts, using standardized attribute-based mappings to generate aligned domain models and database schemas.

How do I use PHP 8 attributes for Doctrine entity mapping instead of manual configurations?▼

Use PHP 8 attributes for Doctrine entity mapping by applying standardized conventions to explicitly map fields, define custom types, and configure relationships directly within your entity classes.

When do I need explicit field mappings and custom types in Doctrine ORM?▼

You need explicit field mappings and custom types in Doctrine ORM when adding new entities or aggregates, ensuring proper typing, table and column naming, and relationship ownership across different bounded contexts.

Can I apply these Doctrine mapping conventions to existing aggregates and relationships?▼

Yes, you can apply these Doctrine mapping conventions to existing aggregates and relationships to align domain models and database schemas, standardizing typing and relationship ownership across your bounded contexts.

Does this Doctrine mapping skill support configuring custom types for entities?▼

Yes, this Doctrine mapping skill supports configuring custom types for entities, applying standardized conventions to field mappings, naming strategies, and relationship annotations for consistent domain modeling.