KeyValueObjectMapping icon indicating copy to clipboard operation
KeyValueObjectMapping copied to clipboard

Fixes #92 - check parent object class when looking up DCArrayMapping

Open mungler opened this issue 3 years ago • 0 comments

This fixes https://github.com/dchohfi/KeyValueObjectMapping/issues/92

If you have more than one DCArrayMapping implementation which uses the same key/attribute names, without this patch its pot luck which one you will get at runtime (likely the first one added).

This patch enforces a check to ensure the array mapper is one added for the parent object class of the array field being mapped.

(Repost of earlier PR: https://github.com/dchohfi/KeyValueObjectMapping/pull/93 - closed due to branch finagling)

mungler avatar Apr 14 '22 10:04 mungler