Skip to content

Commit 59a6674

Browse files
committed
chore: return relationship type in dart
1 parent 1eab080 commit 59a6674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/type-generation/languages/dart.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Dart extends LanguageMeta {
2222
type = "bool";
2323
break;
2424
case AttributeType.RELATIONSHIP:
25-
type = "Map<String, dynamic>";
25+
type = LanguageMeta.toPascalCase(attribute.relatedCollection);
2626
break;
2727
default:
2828
throw new Error(`Unknown attribute type: ${attribute.type}`);

0 commit comments

Comments
 (0)