Subject: | possible bug with including constraints in a relationship definition? |
13:45 < ether> I just discovered that when specifying an extra condition in a relationship (the third argument to has_many or whatever), if one wants to add a condition on a field being null, one cannot say "$args->{foreign_alias}.fieldname" => undef -- you have to say "$args->{foreign_alias}.fieldname" => { '=' => undef }
13:46 < ether> with the former, the query isn't even done -- you simply get undef back when you invoke the relationship.
13:46 < ether> I spent a little while trying to figure out why it looked like I had no associated rows :/
14:08 < jnap> ether: sounds like you found a bug to me, anyone disagree?
14:09 < jnap> I would mostly expect those relationship args to be mostly like search args
This seems like too basic an issue to be a real bug, but if so, I'm not sure what I'm doing wrong.