Skip to content

Conversation

@Buggaboo
Copy link
Contributor

@Buggaboo Buggaboo commented Oct 22, 2020

@greenrobot-team I need some help setting up many-to-many relations.

Copy link
Contributor

@vaind vaind left a 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

@vaind
Copy link
Contributor

vaind commented Dec 31, 2020

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.

@vaind vaind closed this Dec 31, 2020
@Buggaboo Buggaboo deleted the feature/relate branch January 4, 2021 17:21
greenrobot-team added a commit that referenced this pull request Mar 31, 2025
dart_style 3 requires specifying languageVersion for DartFormatter. This
parameter also exists in version 2, so just always specify it to be
backwards compatible.
greenrobot-team added a commit that referenced this pull request Apr 1, 2025
dart_style 3 requires specifying languageVersion for DartFormatter. This
parameter also exists in version 2, so just always specify it to be
backwards compatible.
greenrobot-team added a commit that referenced this pull request Apr 1, 2025
…o 'main'

Generator: allow new major versions of analyzer and source_gen #133

See merge request objectbox/objectbox-dart!103
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

Successfully merging this pull request may close these issues.

2 participants