Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Collection with name ClubPlayers has already been registered #297

Closed
darmie opened this issue Apr 6, 2022 · 1 comment
Closed

Comments

@darmie
Copy link

darmie commented Apr 6, 2022

I set "ClubPlayers" only once, but I still get an error

export class Player {
    id!: string
    name!: string
    number!: number
    clubId!: string
    path?:string
}

@Collection()
export class Club {
    id!: string
    name!: string
    description!: string
    @SubCollection(Player, "ClubPlayers")
    players?: ISubCollection<Player>;
    path?:string
}

@Collection()
export class LineUp {
    id!: string
    @Type(() => Club)
    club!: Club
    @SubCollection(Player, "PlayersLineup")
    players?: ISubCollection<Player>;
    path?:string
}
@wovalle
Copy link
Owner

wovalle commented Apr 7, 2022

Closed as is a duplicated of #250

@wovalle wovalle closed this as completed Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants