Doctrine, Symfony 6 & the Database
Discover the power of Doctrine, the most powerful ORM in PHP, and learn how to work with databases in Symfony. Boost your knowledge with this tutorial!
What you’ll be learning
After the first two courses, we’re going to turn the volume to 11! Yup, it’s database time!
This tutorial is all about Doctrine: a powerful ORM that will allow us to talk to a database from inside our Symfony app. With the power of PHP 8 & tools inside Symfony, Doctrine is not only the most powerful ORM in PHP, it’s also a joy to work with. You are going to love it!
Booting a database with Docker via the Flex recipe system
Database config
Creating (and updating) Entities with make:entity
Generating & using migrations
Inserting new data
Fetching & Querying for data
Doctrine Repositories
Custom queries and the query builder
Fixtures (Dummy data) using Foundry
Relationships & Associations
SELECT * FROM doctrine_knowledge.