Closed gerosyab closed 6 years ago
Error is pretty self explanatory:
OneToMany Methods can only have one parameter and that be the DatabaseWrapper
you have:
@OneToMany(methods = {OneToMany.Method.ALL}, variableName = "records")
public List<Record> getRecords(Date fromDate, Date toDate) {
return SQLite.select()
.from(Record.class)
.where(Record_Table.category_id.eq(id))
.and(Record_Table.date.between(fromDate).and(toDate))
.queryList();
}
the date parameters are not allowed.
==========class com.raizlabs.android.dbflow.processor.definition.OneToManyDefinition (Kotlin reflection is not available) :@OneToMany definition savePermissions Cannot find referenced variable mPermissions .==========
DBFlow Version: 4.2.4
Bug or Feature Request: Build Failed with Exception (OneTomManyDefinition)
Description:
I tried to build my application using DB Flow 4.2.4 but failed with Exception at OneToManyDefinition class.
I think I'm not using any kotlin feature with dbflow but log message seems to be related with kotlin.
07.219 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 16s
Here is my app's build.gradle.
And this is my model (only with OneToMany methods).