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
Im Trying to add List item to my exciting realm model. And when i add string properly there is no issues shows. but when i try to add list property is shows Error.
Repro steps
1
Version
sdk: '>=3.0.6 <4.0.0'
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Flutter Application
Client OS and version
1
Code snippets
import 'package:realm/realm.dart';
part 'mnu_main_menu.realm.dart';
@RealmModel() @mapto('mnumainmenu')
class _Mnumainmenu { @PrimaryKey() @mapto('_id')
ObjectId? id;
_createRealm() error ::: RealmException: Failed to open realm: Schema validation failed due to the following errors:
- Property 'mnumainmenu.Availability' of type'object' has unknown object type'Availability'
The text was updated successfully, but these errors were encountered:
What happened?
Im Trying to add List item to my exciting realm model. And when i add string properly there is no issues shows. but when i try to add list property is shows Error.
Repro steps
1
Version
sdk: '>=3.0.6 <4.0.0'
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Flutter Application
Client OS and version
1
Code snippets
import 'package:realm/realm.dart';
part 'mnu_main_menu.realm.dart';
@RealmModel()
@mapto('mnumainmenu')
class _Mnumainmenu {
@PrimaryKey()
@mapto('_id')
ObjectId? id;
@mapto('CloudLocationID')
String? cloudLocationID;
@mapto('IsDeleted')
bool? isDeleted;
@mapto('ItemName')
_MnumainmenuItemName? itemName;
@mapto('LocalID')
int? localID;
@mapto('OrderIndex')
int? orderIndex;
@mapto('ShowMenu')
bool? showMenu;
@mapto('Availability')
_Availability? availability;
}
@RealmModel(ObjectType.embeddedObject)
@mapto('mnumainmenu_ItemName')
class _MnumainmenuItemName {
@mapto('Translations')
_MnumainmenuItemNameTranslations? translations;
}
@RealmModel(ObjectType.embeddedObject)
@mapto('mnumainmenu_ItemName_Translations')
class _MnumainmenuItemNameTranslations {
String? en;
}
@RealmModel(ObjectType.embeddedObject)
class _Availability {
@mapto('Sunday')
List<_TimeEntity> sunday = [];
}
@RealmModel(ObjectType.embeddedObject)
class _TimeEntity {
@mapto('StartTime')
String? start;
@mapto('EndTime')
String? end;
}
Stacktrace of the exception/crash you're getting
'
Relevant log output
The text was updated successfully, but these errors were encountered: