YoVDO

Mastering Doctrine Relations in Symfony 4!

Offered By: SymfonyCasts

Tags

Doctrine Courses Web Development Courses

Course Description

Overview

In the part 1 of the Doctrine Tutorial we created a freakin' awesome setup: with Doctrine: entities, queries, migrations and fixtures.

But, we're missing a big, giant, huge, important piece! Database relations! And once you've mastered these, you'll be unstoppable! But... a lot of information out there make Doctrine relations look over-complicated. And actually, they're simple and beautiful, especially with some recent changes in Symfony 4:

  • Generating a ManyToOne relationship (association)
  • The annotations for a relation
  • The OneToMany inverse side of a relation
  • Referencing objects across fixture classes
  • The owning versus inverse sides of a relation
  • Doing magic with the ArrayCollection (Criteria)
  • Querying with Joins
  • ManyToMany Relations
  • Pagination!

Help us bring "The Space Bar" app to the galaxy, with, (inter) stellar database relations. Yep, that's the level of humor you can expect!


Syllabus

  • Adding a Comment Entity
  • Adding the ManyToOne Relation
  • Saving Relations
  • Fetching Relations
  • Owning Vs Inverse Relations
  • Fixture References & Relating Objects
  • Awesome Random Fixtures
  • OrderBy & fetch EXTRA_LAZY
  • Giving the Comments an isDeleted Flag
  • Collection Magic with Criteria
  • Twig Block Tricks
  • The Twig Extensions Library
  • Request Object & Query OR Logic
  • Query Joins & Solving the N+1 Problem
  • Pagination
  • The 4 (2?) Possible Relation Types
  • ManyToMany Relationship
  • Saving a ManyToMany Relation + Joins
  • ManyToMany Joins & When to Avoid ManyToMany

Taught by

Ryan Weaver

Related Courses

30 Days to Learn Laravel
Laracasts
3D Graphics for Web Developers
Pompeu Fabra University via FutureLearn
A Beginner’s Guide to Web Development with HTML5
Packt via FutureLearn
Accessibility Audit
Amazon Web Services via AWS Skill Builder
Expanding Your JS Skills with Angular
A Cloud Guru