/superpowers-symfony:doctrine-fetch-modesfrom superpowers-symfony
Optimizes Doctrine fetching in Symfony: DTO hydration via SELECT NEW, fetch joins, LAZY/EXTRA_LAZY mapping, query hints, and DBAL 4 raw SQL for reports.
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.
LAZY, EAGER or EXTRA_LAZY on a mapping, or porting ORM 2 code that relied on PARTIAL objects.fetch: 'LAZY'; set fetch: 'EXTRA_LAZY' on large collections so count(), contains() and slice() run targeted SQL.addSelect() plus leftJoin()).readonly DTO with SELECT NEW (constructor argument order must match the NEW list).Query::HINT_READ_ONLY or an index-by alias (createQueryBuilder('p', 'p.id')) when the result is only displayed or looked up by id.fetchAllAssociative(), fetchOne(), executeStatement()).PARTIAL in DQL fails on ORM 3.0 to 3.2 and only returns from 3.3: use SELECT NEW DTOs for read-only lists instead.fetch: 'EAGER' on a mapping; a fetch join in the query gives the same result per use case.SELECT NEW returns DTOs, not managed entities: never modify or flush them.query(), exec() and fetchAll().SELECT NEW queries that fill them.doctrine:query:dql --show-sql.reference.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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