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.

script type="text/javascript" src="">

Be sure to watch in HD.

More screencasts and support can be found at



Do NOT follow this link or you will be banned from the site!