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

Can't save entity with array #6

Open
alexander-kiriliuk opened this issue Aug 15, 2020 · 1 comment
Open

Can't save entity with array #6

alexander-kiriliuk opened this issue Aug 15, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@alexander-kiriliuk
Copy link

Why entities with arrays (nested entities) is not saved?

  @Property()
  slots: AnythingDTO[];

AnythingDTO - it is entity too.

@Nytyr
Copy link
Member

Nytyr commented Aug 18, 2020

Hello!
Right now we only support N to 1 relationships with:

  @HasOne(type => Group, {cascadeInsert: true, cascadeUpdate: true})
  @Property()
  public group: Group;

I will add 1 to N relations soon.
Maybe for now you can do a workaround by changing the relationship.

@Nytyr Nytyr added the enhancement New feature or request label Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants