MetaOrgService constructor
MetaOrgService({
- required MSchemaService schemaService,
Implementation
MetaOrgService({required this.schemaService}) {
schemaService.loadedEntitySchemas.forEach((schema) async {
if (schema.schemaRef == OrganizationRef ||
schema.parentRef == OrganizationRef) {
try {
log.fine("Found org ${schema.schemaRef}");
final org = await _loadOrgSchema(schema.parentRef, schema)!;
_orgTypes[schema.schemaRef] = org;
} catch (e, stack) {
log.info("Error loading org schema: $e", e, stack);
}
}
});
schemaService.load();
}