/superpowers-symfony:doctrine-relationsfrom superpowers-symfony
Define Doctrine entity relationships (OneToMany, ManyToMany, ManyToOne); configure cascade, orphan removal, multiple entity managers; prevent N+1 queries
Ships in superpowers-symfony. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
ManyToOne, OneToMany, ManyToMany or OneToOne and choosing the owning side.cascade and orphanRemoval for child entities.contains() is slow on a large inverse collection.ManyToOne with inversedBy) and the inverse side (OneToMany with mappedBy).ArrayCollection in the constructor, and write addX() and removeX() helpers that keep both sides in sync.cascade: ['persist'] for aggregates saved together, and orphanRemoval: true only for true composition.fetch: 'EXTRA_LAZY', or test membership from the owning side.ManagerRegistry.ManyToOne reference.cascade: ['remove'] on large collections (one DELETE per row), and never use orphanRemoval on shared entities.ManagerRegistry::getRepository(Entity::class, 'name').doctrine:schema:validate.reference.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
doctrine, symfony, entity-relationships, n-plus-1, cascade, orphan-removal
npx claudepluginhub dev-toolings/superpowers-symfony --plugin superpowers-symfony44 skills in this plugin
/api-platform-dto-resourcesMap entities to API DTOs in API Platform (v5, 4.4, 4.3) with the Symfony Object Mapper (#[Map], stateOptions) for decoupled input/output contracts/api-platform-filtersImplement API Platform filters - Parameters API (QueryParameter, v5/4.4/4.3) and the #[ApiFilter] attribute deprecated since 4.4 - for search, date, range, boolean, and custom filtering/api-platform-resourcesConfigure API Platform resources (v5, 4.4, 4.3) with explicit operations, pagination, and typed OpenAPI for clean, versioned REST/GraphQL APIs/api-platform-securitySecure API Platform resources with security expressions, voters, securityPostValidation, and operation-level access control/api-platform-serializationControl API Platform serialization with groups, #[Context], IRI links (readableLink/writableLink), and custom context builders/api-platform-state-providersMaster API Platform State Providers and Processors (v5, 4.4, 4.3) (ProviderInterface/ProcessorInterface) to decouple data retrieval and persistence from entitiesOther plugins' skills for the same job