This commit is contained in:
hannathkadher
2025-02-10 12:59:43 +04:00
parent 219974385a
commit acf8c42170
2 changed files with 13 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import { ProjectEntity } from '../../project/entities';
import { AbstractEntity } from '../../abstract/entities/abstract.entity';
import { NewTagDto } from '../dtos/tag.dto';
import { SpaceModelProductAllocationEntity } from '../../space-model/entities/space-model-product-allocation.entity';
import { SubspaceProductAllocation } from '../../space';
import { SubspaceProductAllocationEntity } from '../../space';
@Entity({ name: 'tag' })
@Unique(['name', 'project'])
@ -38,10 +38,10 @@ export class NewTagEntity extends AbstractEntity<NewTagDto> {
public spaceModelAllocations: SpaceModelProductAllocationEntity[];
@OneToMany(
() => SubspaceProductAllocation,
() => SubspaceProductAllocationEntity,
(allocation) => allocation.allowedTags,
)
public subspaceAllocations: SubspaceProductAllocation[];
public subspaceAllocations: SubspaceProductAllocationEntity[];
constructor(partial: Partial<NewTagEntity>) {
super();