Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If id is Int, insert method not gen correctly with association #40

Closed
jaumard opened this issue Jul 24, 2018 · 1 comment
Closed

If id is Int, insert method not gen correctly with association #40

jaumard opened this issue Jul 24, 2018 · 1 comment

Comments

@jaumard
Copy link
Contributor

jaumard commented Jul 24, 2018

In SQLite, if you want an auto increment id, you need to put it as int, by doing so the insert method is not generated correctly in case of association:

Future<dynamic> insert(Post model, {bool cascade: false}) async {
    final Insert insert = inserter.setMany(toSetColumns(model))..id(id);
  

Problem is that id method of Insert is waiting for a String not an int so it complain

@tejainece
Copy link
Member

Fixed by e71b5a8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants