#806 ✓resolved
Jonathan Stott (namelessjon)

Parent with CPK can't find children due to NULL second key.

Reported by Jonathan Stott (namelessjon) | February 23rd, 2009 @ 05:01 AM | in 0.10.0

TSIA, or most of it, anyway (and the attached test shows the problem). To summarize, though:

When the parent model has two primary keys, and a query is made for @parent.children, the generated query searches for the case where first child key is the value of the parents first key column, and the second child key is NULL.

This is as of 3373ec7e (Fixed bind value handling for raw conditions in WHERE clause generation), though the problem also occured before that.

Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) February 23rd, 2009 @ 03:30 PM

    • Assigned user set to “Dan Kubb (dkubb)”
    • State changed from “unconfirmed” to “accepted”
  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) June 16th, 2009 @ 03:26 AM

    • State changed from “accepted” to “resolved”
    • Milestone set to 0.10.0

    This should now be resolved in the latest dm-core/next due to the handling of CPKs in one-to-many relationships. Marking this ticket as resolved, but please also confirm on your end and let me know if not resolved there.

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 »