wrap
Callable
returns WrappedEntity instance associated with this entity. This includes all the internal properties like
__metaor__em.Parameters
entity: T
preferHelper: true
Returns IWrappedEntityInternal<T>
returns WrappedEntity instance associated with this entity. This includes all the internal properties like __meta or __em.
wraps entity type with WrappedEntity internal properties and helpers like init/isInitialized/populated/toJSON use
preferHelper = trueto have access to the internal__properties like__metaor__em