symfony:doctrine-fetch-modes
Optimize Doctrine fetching with DTO hydration (SELECT NEW; partial removed in ORM 3), lazy loading, query hints, and DBAL 4 access
Savant verdict: Analyzed
Scanned or evaluated by Savant; not yet both passing.
Live evaluation
Not evaluated yet. Workspaces can request a live evaluation.
Safety (NVIDIA SkillSpector)
Risk score
0/100
Recommendation
CAUTION
Severity
LOW
Savant decision
Passed (low risk)
SkillSpector rated it CAUTION, but its risk score is below 20/100, so Savant's policy passes it. Its findings are still listed for review. SkillSpector 2.12.0, static analysis.
0 patterns found
Structure
- No license declaredConfirm you may reuse this skill before importing it into your repository.
SKILL.md
--- name: symfony:doctrine-fetch-modes allowed-tools: - Read - Write - Edit - Bash - Glob - Grep description: Optimize Doctrine fetching with DTO hydration (SELECT NEW; partial removed in ORM 3), lazy loading, query hints, and DBAL 4 access --- # Doctrine Fetch Modes (Symfony) ## Use when - Designing entity relations or schema evolution. - Improving Doctrine correctness/performance. ## Default workflow 1. Model ownership/cardinality and transactional boundaries. 2. Apply mapping/schema changes with migration safety. 3. Tune fetch/query behavior for hot paths. 4. Verify lifecycle behavior with targeted tests. ## Guardrails - Keep owning/inverse sides coherent. - Avoid destructive migration jumps in one release. - Eliminate accidental N+1 and over-fetching. ## Progressive disclosure - Use this file for execution posture and risk controls. - Open references when deep implementation details are needed. ## Output contract - Entity/migration changes. - Integrity and performance decisions. - Validation outcomes and rollback notes. ## References - `reference.md` - `docs/complexity-tiers.md`