Skip to content

Associations/collections with undefined properties when columns not present in result set #35

@VividVisions

Description

@VividVisions

When I map a result set with a result map where every possible association and collection is defined but the respective columns are missing (not just null), at least one object gets added as association/to the collection anyway, with every property undefined.

Version used: 1.1.2
This worked in older versions because the check there was for a falsy id property which included undefined and now the check uses the identity operator for null.

This should be fixed by also checking for undefined id properties and not just for null ids.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions