#1024 ✓resolved
Rob Holland

has n :through id mixup

Reported by Rob Holland | August 28th, 2009 @ 11:27 AM | in 0.10.0

I came across a nasty has n: through bug which I've reproduced here:


The gist of it is that the wrong id is used when associating the objects returned from the database.

In the example all Bs should be assigned to only one A, but a bug causes b.id to be mistakenly taken as a.id meaning DataMapper reports that there is one B per A.

I hope that's clear...

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Referenced by