YoVDO

Mastering Doctrine Relationships in Symfony 3

Offered By: SymfonyCasts

Tags

Doctrine Courses Web Development Courses Data Structures Courses

Course Description

Overview

In the part 1 of the Doctrine Tutorial we got a sweet setup with Doctrine: entities, queries, migrations and fixtures.

But, we left out one big piece: database relations. Once you've mastered these, you'll be unstoppable. Unfortunately, a lot of information out there make Doctrine relations look over-complicated. Actually, they're simple and beautiful. Sure, they have some pitfalls - but they'll also help you build a complex data structure in no time.

  • ManyToOne relationships (associations)
  • The OneToMany side of a relation
  • The downfall of owning versus inverse sides of a relation
  • Doing magic with the ArrayCollection
  • Querying with Joins

... and more - like some magic with the "Param Conversion".


Syllabus

  • Create Genus Note
  • The King of Relations: ManyToOne
  • Saving a Relationship
  • JoinColumn & Relations in Fixtures
  • Controller Magic: Param Conversion
  • OneToMany: Inverse Side of the Relation
  • Order By with a OneToMany
  • Tricks with ArrayCollection
  • Querying on a Relationship
  • Query across a JOIN (and Love it)

Taught by

Ryan Weaver and Leanna Pelham

Related Courses

Intro to Computer Science
University of Virginia via Udacity
Design of Computer Programs
Stanford University via Udacity
Analytic Combinatorics, Part I
Princeton University via Coursera
Algorithms, Part I
Princeton University via Coursera
Algorithms, Part II
Princeton University via Coursera