Skip to content

Commit 638a3a3

Browse files
Generator: print suggestions if property type not supported.
1 parent af8936b commit 638a3a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

generator/lib/src/entity_resolver.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ class EntityResolver extends Builder {
168168
isToManyRel = true;
169169
} else {
170170
log.warning(
171-
" skipping property '${f.name}' in entity '${element.name}', as it has an unsupported type: '$dartType'");
171+
" skipping property '${f.name}': type '$dartType' not supported,"
172+
" consider creating a relation for @Entity types (https://docs.objectbox.io/relations),"
173+
" or replace with getter/setter converting to a supported type (https://docs.objectbox.io/advanced/custom-types).");
172174
continue;
173175
}
174176
}

0 commit comments

Comments
 (0)