Fix code sample for associating models.

This was recently added, but the relationship method was forgotten.