StaticbuildBuild a reverse foreign key map Maps: entity name -> list of {entity, field} pairs that reference it
Example: "Users" -> [{ entityName: "Orders", fieldName: "UserID", relatedFieldName: "ID" }]
The metadata instance
Map of entity name to list of reverse FK references
StaticgetGet entity dependencies using the Metadata API Returns all entities that have foreign keys pointing to the specified entity
The metadata instance
The entity to check dependencies for
Array of entity dependencies
StaticgetGet all foreign key fields for an entity
The metadata instance
The entity name
Array of foreign key field names
StatichasCheck if an entity has any dependent entities
The metadata instance
The entity to check
True if other entities reference this entity
Helper utility for working with entity foreign key relationships Provides methods for building reverse FK maps and querying dependencies