EntityId Decorator
EntityId
Decorates a property which points to another entity by ID. This custom decorator is needed because we do not know the data type of the ID column until runtime, when we have access to the configured EntityIdStrategy.
Signature
function EntityId(options?: IdColumnOptions): void
Parameters
options
parameter
IdColumnOptions