Closed jaumard closed 1 year ago
This is caused by 2 bugs in the angel3_orm_generator
pacakge. Will be fixed in the upcoming release. In the meantime, you could directly make the following changes to the generated class, loan_g.dart
.
Line 83-84
invoicePhotos:
fields.contains('invoice_photos') ? (row[1] as List<String>) : [],
List<String> get invoicePhotos {
return (json.decode((values['invoice_photos'] as String)) as List).cast<String>();
}
Fixed and released in angel3_orm_generator
7.0.0
The generated code for the following class doesn't compile:
It generate this:
``` // GENERATED CODE - DO NOT MODIFY BY HAND part of 'loan.dart'; // ************************************************************************** // OrmGenerator // ************************************************************************** class LoanQuery extends QueryErrors are:
Any idea what's wrong? I stop compiling when adding the
List<String>
field, is that not supported?