#1116 ✓resolved
Jonathan Stott (namelessjon)

DataMapper doesn't correctly query for nil has 1 relationships

Reported by Jonathan Stott (namelessjon) | November 6th, 2009 @ 12:49 PM

See the linked gist:


But to summarise. When querying for resources which don't have a child item, via Model.all(:child => nil), DM queries for models where id is nil, rather than the correct query.

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 »

People watching this ticket

Referenced by