Remove onDelete and onUpdate properties from entity relationships

This commit is contained in:
faris Aljohari
2024-05-18 22:10:48 +03:00
parent ad15164e15
commit 1bc8fee061
5 changed files with 0 additions and 9 deletions

View File

@ -61,8 +61,6 @@ export class UserEntity extends AbstractEntity<UserDto> {
@OneToMany(() => UserRoleEntity, (role) => role.user, {
nullable: true,
onDelete: 'CASCADE',
onUpdate: 'CASCADE',
})
role: UserRoleEntity[];
constructor(partial: Partial<UserEntity>) {