EntityTransformer
Index
Constructors
Methods
Constructors
constructor
Returns EntityTransformer
Methods
statictoObject
Converts an entity to a plain object, respecting populate hints, hidden fields, and custom serializers.
Parameters
entity: Entity
ignoreFields: Ignored[] = []
raw: boolean = false
Returns Omit<EntityDTO<Entity>, Ignored>
Converts entity instances to plain objects via
toObject(), respecting populate hints, hidden fields, and serialization context.