Symfony Yoandev Doctrine

The persistence layer of a Symfony project: entities in maker format with attribute mapping, auto-increment integer ids, \DateTimeImmutable and native enums; relations and the collection traps they open; repositories as the single place where DQL, QueryBuilder and raw SQL are allowed; SELECT NEW projections into Read DTOs; who calls flush(); and migrations that are generated then read and corrected by hand. Use this skill whenever someone asks to create or change an entity, add a field or a column, store or persist something, link two things together, add a relation or a foreign key, write or fix a repository method, write a query, sort or filter a list from the database, count rows, make a query return less data, create or run a migration, rename a column without losing data, or asks "why is my query wrong", "why is this null", "why does saving not work", "the schema is out of sync", "I lost data after deploying".

yoanbernabeu Updated

File contents

yoanbernabeu/symfony-yoandev-skills/tree/main/skills/symfony-yoandev-doctrine commit ff07c7253b

Frequently asked questions

npx skillmds@latest add yoanbernabeu/symfony-yoandev-doctrine