redisk
redisk copied to clipboard
Can't save entity with array
Why entities with arrays (nested entities) is not saved?
@Property()
slots: AnythingDTO[];
AnythingDTO - it is entity too.
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.