Access custom foreign keys in hasMany

If an explicit identifier was provided for the foreign key in a one-to-many relationship, use that to access the connect the objects (instead of the default "id" field).