Keeping Doctrine Entities Honest with DTOs and ObjectMapper
Your Doctrine entities are lying to you!
For years, the standard way to build Doctrine entities in Symfony has looked something like this (and it's still what MakerBundle generates today):
#[ORM\Enti
symfonycasts.hashnode.dev9 min read