ArkerLabs/redisk

Can't save entity with array

Opened this issue · 1 comments

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

  @Property()
  slots: AnythingDTO[];

AnythingDTO - it is entity too.

Nytyr commented

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.