Symfony: Stop overloading entities!

Опубликовано: 04 Май 2026
на канале: Devscast Software
1,832
128

In this tutorial, we'll discover DTOs (Data Transfer Objects) in PHP and Symfony, an essential approach to structuring data exchanges, protecting the business domain and preventing uncontrolled entity modifications.

Join me in transforming your Symfony skills! 💻✨
Don't forget to subscribe, like the video and share your projects in the comments. 🙌

CODE: https://github.com/devscast-youtube/s...

00:00 Introduction
00:26 The problem
02:51 What is a DTO?
05:00 DTO in forms
06:13 Student Model
07:51 Removing setters
9:11 Updating a student
9:59 Tests and Conclusion

#Symfony #php #developer #backend #cleancode

=== Mon setup ===
Macbook Pro 2019
Micro : Behringer U-phoria UM2 Studio
Logiciels : OBS, Audacity et DaVinci Resolve 18
Slides : Apple Keynote, SlidesCodeHighligther
IDE : Phpstorm, Pycharm et VsCode

=== Mes réseaux ===
Blog : https://ngandu.hashnode.dev
Github : https://github.com/bernard-ng
Instagram :   / _bernard.ng_  
Linkedin :   / bernard-ngandu  
X (Twitter) : https://x.com/BernardNgandu
Youtube :    / @bernard-ng  

=== Devscast ===
Site internet : https://devscast.tech
Github : https://github.com/devscast