klyn.data.EntityManager.loadRelationshipForAccess
method
public loadRelationshipForAccess(
entity as Object,
propertyPath as String
) as Object:
Description

Resolves one relation requested by a generated lazy property getter.

This method is the reflected boundary used by the runtime. Application code reads the entity property directly; no proxy or explicit load call is exposed in the entity model.

Parameters
ParameterDescription
entityManaged source entity.
propertyPathComplete mapped relationship path.
Returns

Direct related entity, mutable list, or null.

Throws
  • EntityLifecycleException when the source is detached.
  • EntityMappingException when the path is not a mapped relation.
Example
order = manager.find<Order>(42)
print(order.customer.name)  # Loads customer when declared lazy.