Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem after upgrade to SqfEntity 1.0.2 #20

Closed
hellowtisch opened this issue Sep 10, 2019 · 4 comments
Closed

Problem after upgrade to SqfEntity 1.0.2 #20

hellowtisch opened this issue Sep 10, 2019 · 4 comments

Comments

@hellowtisch
Copy link

Hello,

after upgrading to SqfEntity 1.02 and changing the Primary Key declaration to primaryKeyType= PrimaryKeyType.integer_auto_incremental in all of my tables, I receive an error ininitializing the DB:

I/flutter (20935): >>>>>>>>>>>>>>>>>>>>>>>>>>>> SqfEntityTable of [BlocksTrainingsScaling] initialized successfuly
I/flutter (20935): >>>>>>>>>>>>>>>>>>>>>>>>>>>> SqfEntityTable of [Config] initialized successfuly
I/flutter (20935): >>>>>>>>>>>>>>>>>>>>>>>>>>>> SqfEntityTable of [MasterTraining] initialized successfuly
I/flutter (20935): >>>>>>>>>>>>>>>>>>>>>>>>>>>> SqfEntityTable of [MeasurementScaling] initialized successfuly
I/flutter (20935): >>>>>>>>>>>>>>>>>>>>>>>>>>>> SqfEntityTable of [Patient] initialized successfuly
I/flutter (20935): >>>>>>>>>>>>>>>>>>>>>>>>>>>> SqfEntityTable of [TableSide] initialized successfuly
I/flutter (20935): >>>>>>>>>>>>>>>>>>>>>>>>>>>> SqfEntityTable of [SkiTrainingsScaling] initialized successfuly
I/flutter (20935): >>>>>>>>>>>>>>>>>>>>>>>>>>>> SqfEntityTable of [Therapist] initialized successfuly
I/flutter (20935): >>>>>>>>>>>>>>>>>>>>>>>>>>>> SqfEntityTable of [Training] initialized successfuly
I/flutter (20935): >>>>>>>>>>>>>>>>>>>>>>>>>>>> SqfEntityTable of [TrainingData] initialized successfuly
E/flutter (20935): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The method 'where' was called on null.
E/flutter (20935): Receiver: null
E/flutter (20935): Tried calling: where(Closure: (SqfEntitySequence) => bool)
E/flutter (20935): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
E/flutter (20935): #1 SqfEntityModel.initializeDB (package:sqfentity/sqfentity.dart:2126:35)

@hellowtisch
Copy link
Author

reverting to v0.2.1 with primaryKeyIsIdentity=true works...

@hhtokpinar
Copy link
Owner

Did you try with latest version 1.0.4+1 ?

@hhtokpinar
Copy link
Owner

@hellowtisch now released v1.0.5. It must have fixed.

@hellowtisch
Copy link
Author

hellowtisch commented Sep 11, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants