typeorm APIs
- Column
- Entity
- PrimaryGeneratedColumn
- createConnection
- CreateDateColumn
- ManyToOne
- OneToMany
- UpdateDateColumn
- Repository
- JoinColumn
- QueryRunner
- Connection
- MigrationInterface
- getRepository
- getConnection
- BaseEntity
- OneToOne
- JoinTable
- PrimaryColumn
- Index
- ManyToMany
- Table
- EntityRepository
- SelectQueryBuilder
- In
- ConnectionOptions
- BeforeInsert
- Not
- getManager
- Brackets
- Unique
- TableColumn
- MoreThan
- TableForeignKey
- BeforeUpdate
- IsNull
- EntityManager
- ObjectType
- ObjectIdColumn
- RelationId
- getCustomRepository
- FindOneOptions
- MongoRepository
- ObjectID
- getConnectionManager
- DeleteDateColumn
- FindConditions
- MoreThanOrEqual
- getMongoRepository
- Generated
- DeepPartial
- LessThan
- ValueTransformer
- LessThanOrEqual
- FindManyOptions
- Like
- EntitySchema
- Raw
- VersionColumn
- AfterLoad
- DeleteResult
- EventSubscriber
- EntitySubscriberInterface
- InsertEvent
- createQueryBuilder
- createConnections
- getConnectionOptions
- DefaultNamingStrategy
- ObjectLiteral
- ILike
- Between
- Logger
- TreeRepository
- DataSource
- TableIndex
- WhereExpressionBuilder
- useContainer
- EntityTarget
- SaveOptions
- FindOperator
- ConnectionOptionsReader
- EntityMetadata
- RemoveEvent
- InsertResult
- UpdateEvent
- TreeChildren
- TreeParent
- DeleteQueryBuilder
- ChildEntity
- WhereExpression
- ViewEntity
- getMetadataArgsStorage
- OrderByCondition
- AfterInsert
- AfterUpdate
- BeforeRemove
- Timestamp
- QueryFailedError
- UpdateResult
- Equal
- UpdateQueryBuilder
- ColumnType
- ColumnOptions
- InstanceChecker
- DataSourceOptions
Other Related APIs
typeorm#BeforeRemove TypeScript Examples
The following examples show how to use
typeorm#BeforeRemove.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Attachment.ts From fosscord-server with GNU Affero General Public License v3.0 | 5 votes |
@BeforeRemove()
onDelete() {
return deleteFile(new URL(this.url).pathname);
}