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

No warning when one of multiple primary keys is missing #789

Open
Huluk opened this issue Oct 30, 2023 · 0 comments · May be fixed by #790
Open

No warning when one of multiple primary keys is missing #789

Huluk opened this issue Oct 30, 2023 · 0 comments · May be fixed by #790

Comments

@Huluk
Copy link

Huluk commented Oct 30, 2023

I misspelled one of multiple primary keys like so:

@Entity(primaryKeys: ['foreign_id', 'time'])
class Example {
  final int foreignId;
  final DateTime time;
}

and flutter did not complain at all and instead only created a single primary key, for time.
This is very hard to notice and should produce an error message.

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

Successfully merging a pull request may close this issue.

1 participant