Class: abstract EntityHelper
typeorm/src.EntityHelper
Extends
BaseEntity
Implements
Constructors
new EntityHelper()
new EntityHelper():
EntityHelper
Returns
Inherited from
BaseEntity.constructor
Accessors
target
getstatictarget():EntityTarget<any>
Returns object that is managed by this repository. If this repository manages entity from schema, then it returns a name of that schema instead.
Returns
EntityTarget<any>
Source
node_modules/typeorm/repository/BaseEntity.d.ts:67
Methods
hasId
hasId():
boolean
Checks if entity has an id. If entity composite compose ids, it will check them all.
Returns
boolean
Inherited from
BaseEntity.hasId
Source
node_modules/typeorm/repository/BaseEntity.d.ts:30
recover
recover(
options?):Promise<EntityHelper>
Recovers a given entity in the database.
Parameters
▪ options?: SaveOptions
Returns
Promise<EntityHelper>
Inherited from
BaseEntity.recover
Source
node_modules/typeorm/repository/BaseEntity.d.ts:47
reload
reload():
Promise<void>
Reloads entity data from the database.
Returns
Promise<void>
Inherited from
BaseEntity.reload
Source
node_modules/typeorm/repository/BaseEntity.d.ts:51
remove
remove(
options?):Promise<EntityHelper>
Removes current entity from the database.
Parameters
▪ options?: RemoveOptions
Returns
Promise<EntityHelper>
Inherited from
BaseEntity.remove
Source
node_modules/typeorm/repository/BaseEntity.d.ts:39
save
save(
options?):Promise<EntityHelper>
Saves current entity in the database. If entity does not exist in the database then inserts, otherwise updates.
Parameters
▪ options?: SaveOptions
Returns
Promise<EntityHelper>
Inherited from
BaseEntity.save
Source
node_modules/typeorm/repository/BaseEntity.d.ts:35