CodeIgniter 2 + Sparks + PHP ActiveRecord Part 5: ORM Associations and N+1

In this episode we'll start creating associations between models by creating a belongs_to / has_many relationship between users and blog posts and we'll talk about accessing the related data in multiple ways. We'll also discuss the N+1 query problem and how to resolve it using PHP-ActiveRecord.

Be sure to watch in HD.

Download the source for part 5.