Skip to content

Commit 62d1528

Browse files
author
Gérard Collin
committed
fix: Supports deferred types in project
1 parent dba2a2d commit 62d1528

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

apps/xt-host/projects/host/src/app/application-model-manager/application-model-manager.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const PRJ_REF_DEFINITION=
149149
referenceType: 'ManyToOne'
150150
},
151151
name: 'restaurant',
152-
type: 'string'
152+
type: 'Restaurant'
153153
},
154154
{
155155
reference: null,

apps/xt-host/projects/host/src/app/project-load/project-load.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ export class ProjectLoadComponent implements OnInit {
8181
this.updateDefaultStore (this.appMgr.getDefaultSharing());
8282
// Register the types defined in the project
8383
const newTypes = this.appMgr.getApplicationTypes ();
84-
if (newTypes!=null)
84+
if (newTypes!=null) {
8585
this.resolver.registerTypes(newTypes);
86+
this.resolver.resolvePendingReferences();
87+
}
8688

8789
const entityName = this.appMgr.retrieveFirstEntity();
8890
if (entityName != null)

0 commit comments

Comments
 (0)