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
When I try to make a @Backlink using IsarLinks, I get the error "Target of Backlink does not exist".
Even the code from the official example gives the same error:
Code sample
@collectionclassTeacher {
Id id =Isar.autoIncrement;
lateString subject;
@Backlink(to:'teacher')
final student =IsarLinks<Student>();
}
@collectionclassStudent {
Id? id =Isar.autoIncrement;
lateString name;
}
The ERROR:
Target of Backlink does not exist
package:app/entity.dart:10:9
╷
10 │ final student = IsarLinks<Student>();
│ ^^^^^^^
╵
Details
Platform: Android 13, API Level 33, x86_64 Android Emulator on Linux.
Flutter version: [3.19.5]
Isar version: 3.1.0+1
I searched for similar issues already
I filled the details section with the exact device model and version
I am able to provide a reproducible example
The text was updated successfully, but these errors were encountered:
@kanntim
Student() no have IsarLinks,so no backlink.
You can
@collection
class Teacher {
Id id = Isar.autoIncrement;
late String subject;
@Backlink(to: 'name')
final student = IsarLinks<Student>();
}
@collection
class Student {
Id? id = Isar.autoIncrement;
final name=IsarLinks<Teacher>();
}
Steps to Reproduce
When I try to make a @Backlink using IsarLinks, I get the error "Target of Backlink does not exist".
Even the code from the official example gives the same error:
Code sample
The ERROR:
Details
The text was updated successfully, but these errors were encountered: