MaterialEntity GitHub

📊 Overview: 3 Functions 1 Getters

Extends: Entity

🕐 Last updated: 2026-01-13T16:04:12.107Z


📑 Table of Contents


Functions

Regular Functions

getMaterialsUsingThis

Function getMaterialsUsingThis -> cs.MaterialSelection

Returns collection of materials that use this material as a usage/component material in slots 1, 2, or 3

Returns: cs.MaterialSelection


getMigrationRules

[🖥️ local]

Function getMigrationRules($RemoteEntity : cs.MaterialEntity) -> $Collection : Collection

Returns collection of EntityMigrationRule objects defining how to merge this material with remote during sync

Parameters:

Name Type Optional Description
$RemoteEntity cs.MaterialEntity - -

Returns: Collection


syncMigrationSelections

[🖥️ local]

Function syncMigrationSelections($RemoteEntity : cs.MaterialEntity)

Synchronizes related selections (Product_Option, BOM, UsageMat selections) after material entity merge

Parameters:

Name Type Optional Description
$RemoteEntity cs.MaterialEntity - -

Computed Attributes (Getters/Setters/Query/OrderBy)

HasMigrationID

[🔍 get only, 🖥️ local]

Function get HasMigrationID -> Boolean

Returns true if material has valid migration ID (greater than 0); indicates entity was involved in sync operation

Returns: Boolean


🗂️ Tables

  • Material - ORDA Entity class for Material table
  • Material - ORDA DataClass class for Material table

� Forms


Generated from MaterialEntity.4dm


This site uses Just the Docs, a documentation theme for Jekyll.