Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EntitySubscriberInterface<Entity>

Classes that implement this interface are subscribers that subscribe for the specific events in the ORM.

Type parameters

  • Entity

Hierarchy

  • EntitySubscriberInterface

Index

Methods

Optional afterInsert

  • afterInsert(event: InsertEvent<Entity>): Promise<any> | void

Optional afterLoad

  • afterLoad(entity: Entity): Promise<any> | void

Optional afterRemove

  • afterRemove(event: RemoveEvent<Entity>): Promise<any> | void

Optional afterUpdate

  • afterUpdate(event: UpdateEvent<Entity>): Promise<any> | void

Optional beforeInsert

  • beforeInsert(event: InsertEvent<Entity>): Promise<any> | void

Optional beforeRemove

  • beforeRemove(event: RemoveEvent<Entity>): Promise<any> | void

Optional beforeUpdate

  • beforeUpdate(event: UpdateEvent<Entity>): Promise<any> | void

Optional listenTo

  • listenTo(): Function
  • Returns the class of the entity to which events will listen. If this method is omitted, then subscriber will listen to events of all entities.

    Returns Function

Generated using TypeDoc