Files
ai-chat/.continue/rules/entity-directory-structure-with-php-attributes.md
2026-06-10 18:22:27 +02:00

11 lines
814 B
Markdown

---
globs: src/Data/*/Entity/*.php
description: This rule enforces proper entity organization in the Data layer
with clear separation by feature. It mandates usage of modern PHP attributes
for Doctrine mappings instead of annotations to align with contemporary PHP
standards and Symfony best practices. When feature names cannot be determined,
explicit developer decisions are required rather than automatic defaults.
alwaysApply: true
---
All entities must be placed in /src/Data/[FeatureName]/Entity directory, where [FeatureName] represents a valid feature-specific subdirectory. Entities must use modern PHP attributes (not annotations) for Doctrine mapping. When the FeatureName is unknown or ambiguous, developers must actively select an appropriate feature name rather than defaulting to 'Unknown'.