diff --git a/docs/entities.md b/docs/entities.md index 9b562454ce..0bd5cbcd1b 100644 --- a/docs/entities.md +++ b/docs/entities.md @@ -705,11 +705,11 @@ export class Category { @Column() description: string; - @OneToMany(type => Category, category => category.children) + @ManyToOne(type => Category, category => category.children) parent: Category; - @ManyToOne(type => Category, category => category.parent) - children: Category; + @OneToMany(type => Category, category => category.parent) + children: Category[]; } ```