You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Columns with references have corresponding filters with fewer methods.
classUserextendsTable {
latefinal id =integer().autoIncrement()();
latefinal name =text()();
}
classPostsextendsTable {
latefinal id =integer().autoIncrement()();
latefinal userId =integer()();
latefinal userIdWithReference =integer().references(User, #id)();
}
@DriftDatabase(tables: [User, Posts])
classAppDatabaseextends_$AppDatabase {
voidfoo() {
managers.posts.filter((p) => p.userId.equals(1)); // works fine
managers.posts.filter((p) => p.userIdWithReference.equals(1));
// The method 'equals' isn't defined for the type '$$UserTableFilterComposer'.// Try correcting the name to the name of an existing method, or defining a method named 'equals'.
}
}
Expected behaviour: adding a reference shouldn't result in less functionality.
The text was updated successfully, but these errors were encountered:
Columns with references have corresponding filters with fewer methods.
Expected behaviour: adding a reference shouldn't result in less functionality.
The text was updated successfully, but these errors were encountered: