mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-24 15:27:43 +01:00
fix: 🐛 Relationship non funzionante
This commit is contained in:
parent
773611e9ce
commit
4f84ef28c3
@ -411,7 +411,8 @@ export class RecordsPage extends Page {
|
||||
return relationModel;
|
||||
}
|
||||
|
||||
const relationship = model[relation] as ToOneRelation<IModel> | ToManyRelation<IModel>;
|
||||
const relationship = (model[relation] as Function)() as
|
||||
ToOneRelation<IModel> | ToManyRelation<IModel>;
|
||||
const RelationshipModel = relationship.getType() as InstantiableModel;
|
||||
return createIfNotExists ? new RelationshipModel() : undefined;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user