We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4748c3 commit d6f5fd1Copy full SHA for d6f5fd1
LKDBHelper/Helper/NSObject+LKModel.m
@@ -425,7 +425,7 @@ - (id)db_jsonObjectFromModel:(NSObject*)model
425
jsonObject = [self db_readInfoWithModel:model class:clazz];
426
}
427
else {
428
- if (model.db_inserting == NO && [clazz getModelInfos] > 0) {
+ if (model.db_inserting == NO && [clazz getModelInfos].count > 0) {
429
BOOL success = [model saveToDB];
430
if (success) {
431
0 commit comments