Skip to content

Custom Metadata query - Metadata Relationship fields not supported #208

Open
@gribis

Description

@gribis

When custom metadata tables include references to related metadata (e.g. Entity or Field Definitions), fflib_QueryFactory throws an exception.

FeatureSetDefinition__mdt.ParentObject__r is not a lookup or master-detail field but is used in a cross-object query field.

The field definition for such a reference shows next to nothing of value; SoapType = String, isIdLookup = false, getRelationshipName = null.
Short of avoiding the selector/queryfactory constructs, what are some simple fixes to the above conundrum?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions