-
Notifications
You must be signed in to change notification settings - Fork 117
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
Query missing one record and invalid field assignment during read operation #550
Comments
Thanks for reporting, I could verify your project fails as expected. Things I should look into:
|
Hi, Thanks for answering that fast. For your second point, I believe the issue is on read and not on write (or maybe on both...). As you can see in my first capture (original post), I've added the assignation of I've tried adding a new property I tried to switch properties assignment order and it seems to do something : with the order |
I could isolate the issue: the problem is that as part of setting some properties a database query is executed. This query will run while an object is getting read. This will cause wrong values to be read. In your code look at the I still need to investigate if this is something that should work or should throw an error. |
Thank you for the work. I understand why I wasn't able to reproduce it only with String. Correct me if I'm wrong : If I had create all the missing objects (Section, RecipeIngredient...) with the proper ToOne/ToMany relations it would be ok. My issue is all about having one or many read operations during another one. For my own good, I hope you will improve the tool but I would understand if you don't. I guess it's a lot of work and the community doesn't really need it, otherwise it would have been brought up sooner. |
We have released version |
Thanks you for the update. Does the new version fix both issues (query and read operation) ? I've updated my sandbox project as requested and |
Thanks! I just verified and this is true. The issue only appears when running a query as part of constructing an object and then querying for those objects. The query then will only return one object, regardless of how many objects are in the box. I need to have another look at this. |
We have released version Thanks again! |
Many thanks for your work and time. Everything is fine ! |
Hi guys,
First of all, sorry for my english (I'm french).
I have two issues on the same project :
Sorry if I'm wrong. Your product is really good and quite easy to use. I'm really happy with it.
I tried to understand sub classes process to fix this but guys, I'm just a simple developer and all the work on ByteArray, Buffer... is far to complex for me 👼 .
Basic info:
flutter pub deps --no-dev
flutter doctor -v
Steps to reproduce
Expected behavior
main.dart l.191
recipes list should be equal to recipes list onmain.dart l.187
like it worked for shops list just abovemain.dart l.194
days[0] should contains 1 item in lunchMenu and 2 in dinnerMenu propertiesCode
objectbox.g.dart l.465
: value seems available before dbLunchMenu assignmentobjectbox.g.dart l.469
: value is unavailable after dbLunchMenu assignmentAdditional context
lunchMenu
anddinnerMenu
bymenu
anddbLunchMenu
anddbDinnerMenu
bydbMenu
but I'm not shure why is it working 😭.Thanks for your time 🍻 .
The text was updated successfully, but these errors were encountered: