-
Notifications
You must be signed in to change notification settings - Fork 147
WiP, Preview: relations #133
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
Conversation
…elationUids of course all the tests are broken.
My c lib dep, was outdated. Tests are working.
* Use of retiredPropertyUids
many to many: add retiredRelationUids on removeEntity many to many: lastRelationId one to one: lastIndexId obx_store_debug_flags
vaind
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had a look at your proposal and while some ideas look good, I've also have found a couple of issues:
- model manipulation, such as managing UIDs, relations, indexes, should happen in
lib/modelinfo/model*.dart, not directly in code_builder - the C-binding used is based on the (old) way of defining functions - manually, while the repo uses generated code already,
- some string pointer (memory) management issues
Since this is based on an old commit, I think I'll restart from the current main and cherry-pick what makes sense. Hopefully the commits are structured to allow reasonable cherry-picking
|
And I've noticed relation properties (to-one rels) & standalone relations (to-many) were kinda mixed up here - lastRelationId and retiredRelationIds are only relevant for standalone relations while this PR only starts to implement relation properties. I've cherry-picked and squashed the relevant parts here: 09cce1b and will continue on that branch. |
dart_style 3 requires specifying languageVersion for DartFormatter. This parameter also exists in version 2, so just always specify it to be backwards compatible.
dart_style 3 requires specifying languageVersion for DartFormatter. This parameter also exists in version 2, so just always specify it to be backwards compatible.
…o 'main' Generator: allow new major versions of analyzer and source_gen #133 See merge request objectbox/objectbox-dart!103
@greenrobot-team I need some help setting up many-to-many relations.