In case of ManyToMany relation, writer.dart have written cascade functionality for insert and upsert statements. However it was generating code that have used incorrect variable.
model, which is input parameter don't have to have id, in case if it is insert of new entity with autogenerated PrimaryKey.
In case of ManyToMany relation, writer.dart have written cascade functionality for insert and upsert statements. However it was generating code that have used incorrect variable.
model, which is input parameter don't have to have id, in case if it is insert of new entity with autogenerated PrimaryKey.