Evan Owen 4b91437c88 Treat partially zero compound foreign keys as an unset association
Currently when one value of a compound foreign key is null or zero,
preloading this association yields a panic ("reflect: call of
reflect.Value.Interface on zero Value") because we're attempting to
look up the identity values when any one of the columns is non-zero.

The fix here is to require each of the values to be non-zero or we
assume that the association is missing. This is not a very common
scenario to have in practice, but it's an edge case that's easy to fix
and resolves a use-case for me.
2020-11-02 19:04:55 -08:00
..
2020-06-02 09:18:01 +08:00
2020-06-02 09:18:01 +08:00
2020-02-22 19:41:01 +08:00
2020-07-04 08:21:23 +08:00
2020-10-21 20:18:21 +08:00
2020-10-21 20:18:21 +08:00
2020-08-27 15:03:57 +08:00
2020-09-28 10:55:27 +08:00