Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nick4598 committed Nov 26, 2024
1 parent 0302eeb commit a5bb5de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/transformer/src/ECReferenceTypesCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ export class ECReferenceTypesCache {
const sourceCAs = sourceClass.getCustomAttributesSync();
const targetCAs = targetClass.getCustomAttributesSync();
for (const [customAttributeName, _customAttribute] of sourceCAs) {
// I've essentially captured the case that will cause us problems, but now the question is what to do about it?
/*
* Since queryViews are typically associated with abstract classes and have no specific table in the database, we can ignore them.
*/
if (
customAttributeName.toLowerCase() === "ecdbmap.queryview" &&
sourceType === undefined
Expand All @@ -245,7 +247,9 @@ export class ECReferenceTypesCache {
customAttributeName.toLowerCase() === "ecdbmap.queryview" &&
targetType === undefined
) {
// I've essentially captured the case that will cause us problems, but now the question is what to do about it?
/*
* Since queryViews are typically associated with abstract classes and have no specific table in the database, we can ignore them.
*/
Logger.logInfo(
TransformerLoggerCategory.IModelTransformer,
`targetClass: ${targetClass.schema.name}:${targetClass.name} has customAttribute which is QueryView and no sourceType in the rootClassToRefType map`
Expand Down

0 comments on commit a5bb5de

Please sign in to comment.