bmoeskau/Extensible — pull request #29 by xadhoom (2012-04-18 13:21:20+00:00)
Title: Use right key name when searching object ids

When searching calendars by id, you should use id mapping from calendar obj, not calendar id mapping from event object.

Otherwise you're forced to have calendar object id property named === event calendar id property.

For example without this patch you cannot name Event mapper CalendarId "calendar_id" and Calendar mapper CalendarId "id" , but they must be the same.

Using ORM systems Calendar/Events relation is a has_many, and is quite common to have Event.calendar_id which refers to Calendar.id, that's why the patch

(And if you want to use the ext hasmany relationships, this is the way to go...)