wrap
Callable
returns WrappedEntity instance associated with this entity. This includes all the internal properties like
__meta
or__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 = true
to have access to the internal__
properties like__meta
or__em