Compare commits
No commits in common. "ffcbf65d9da352debd0d5fb3ec2616b70f52171d" and "5dde995ab83c62a3dd7aed426894b20d20a124a8" have entirely different histories.
ffcbf65d9d
...
5dde995ab8
|
@ -116,19 +116,4 @@ export class ItemModel
|
||||||
onUpdate: 'CASCADE',
|
onUpdate: 'CASCADE',
|
||||||
})
|
})
|
||||||
gates: GateModel[];
|
gates: GateModel[];
|
||||||
|
|
||||||
// relasi untuk mendapatkan parent bundling
|
|
||||||
@ManyToMany(() => ItemModel, (model) => model.bundling_parents)
|
|
||||||
@JoinTable({
|
|
||||||
name: 'item_bundlings',
|
|
||||||
joinColumn: {
|
|
||||||
name: 'item_id',
|
|
||||||
referencedColumnName: 'id',
|
|
||||||
},
|
|
||||||
inverseJoinColumn: {
|
|
||||||
name: 'item_bundling_id',
|
|
||||||
referencedColumnName: 'id',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
bundling_parents: ItemModel[];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,12 +26,7 @@ export class BatchDeleteItemManager extends BaseBatchDeleteManager<ItemEntity> {
|
||||||
}
|
}
|
||||||
|
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [
|
return [];
|
||||||
{
|
|
||||||
relation: 'bundling_parents',
|
|
||||||
message: `Gagal! Item sudah berelasi dengen bundling`,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get entityTarget(): any {
|
get entityTarget(): any {
|
||||||
|
|
|
@ -29,12 +29,7 @@ export class DeleteItemManager extends BaseDeleteManager<ItemEntity> {
|
||||||
}
|
}
|
||||||
|
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [
|
return [];
|
||||||
{
|
|
||||||
relation: 'bundling_parents',
|
|
||||||
message: `Gagal! Item sudah berelasi dengen bundling`,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get entityTarget(): any {
|
get entityTarget(): any {
|
||||||
|
|
Loading…
Reference in New Issue