Doctrine, Symfony & the Database
Learn how to use Doctrine, a powerful ORM, to interact with databases in your Symfony app. Discover easy database configuration, entity creation, migrations, data manipulation, querying, and more. Boost your app’s functionality with Doctrine’s seamless integration. Dive into relationships and associations for advanced database management. Start mastering Doctrine today!
What you’ll be learning
It’s database time! After the first two courses, we are primed and ready to take our app up a level… or 10!
This tutorial is all about Doctrine: a powerful ORM that will allow us to talk to a database from inside our Symfony app. Historically, Doctrine has sometimes had a reputation for being hard to learn. But with recent changes in the Symfony world, that’s gone. You are going to love what Doctrine will let you do! Let’s go!
Booting a database with Docker via make:docker:database
Creating (and updating) Entities with make:entity
Generating & using migrations
Inserting new data
Fetching & Querying for data
Custom queries and the query builder
Fixtures (Dummy data) using Foundry
Relationships & Associations