Mitigated circular dependency (to be fixed)

ref #65
This commit is contained in:
2021-01-02 18:12:18 +01:00
parent c9ba69792f
commit 1dc438beb2
8 changed files with 29 additions and 31 deletions

View File

@@ -1,6 +1,5 @@
import { IsInt, IsOptional } from "class-validator";
import { ChildEntity, ManyToOne, OneToMany } from "typeorm";
import { Address } from "./Address";
import { IsInt } from "class-validator";
import { ChildEntity, OneToMany } from "typeorm";
import { Runner } from './Runner';
import { RunnerGroup } from "./RunnerGroup";
import { RunnerTeam } from "./RunnerTeam";
@@ -12,12 +11,12 @@ import { RunnerTeam } from "./RunnerTeam";
@ChildEntity()
export class RunnerOrganisation extends RunnerGroup {
/**
* The organisations's address.
*/
@IsOptional()
@ManyToOne(() => Address, address => address.groups, { nullable: true })
address?: Address;
// /**
// * The organisations's address.
// */
// @IsOptional()
// @ManyToOne(() => Address, address => address.groups, { nullable: true })
// address?: Address;
/**
* The organisation's teams.