Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

SymfonyCasts

Doctrine & the Database in Symfony 4

via SymfonyCasts

Overview

Two episodes down! Booya! And we are super ready to put our new skills to the test! It's finally time to make up app come alive by using Doctrine to connect to a database.

Doctrine is an amazing ORM that works great with Symfony and is super powerful. It also has a reputation for being hard to learn and for making you write a lot of code. But that's changing! Thanks to some recent improvements and Symfony Flex, working with Doctrine has never been easier or more rewarding. So, let's get started!

  • 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 Faker
  • Relationships & Associations

Syllabus

  • Installing Doctrine
  • Creating an Entity Class
  • Database Migrations
  • Saving Entities
  • Querying for Data!
  • Fun with Twig Extensions!
  • ago Filter with KnpTimeBundle
  • Service Subscriber: Lazy Performance
  • All about Entity Repositories
  • Custom Queries
  • Query Logic Re-use & Shortcuts
  • Updating an Entity with New Fields
  • Updating an Entity
  • Fixtures: Seeding Dummy Data!
  • Using Faker for Seeding Data
  • Sluggable & other Wonderful Behaviors
  • When Migrations Fail
  • Activating Timestampable

Taught by

Ryan Weaver

Reviews

Start your review of Doctrine & the Database in Symfony 4

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.