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

Correctly save relations #327

Closed
nechaido opened this issue May 19, 2021 · 1 comment
Closed

Correctly save relations #327

nechaido opened this issue May 19, 2021 · 1 comment

Comments

@nechaido
Copy link
Member

At the moment the only way to check whether an entity has many-to-many relations is to check the indexes property.

It would be good to have a dedicated relations property.
Alternatively references property could be changed to include info about the reference.

Additional context
metarhia/metagram#2 (comment)

@tshemsedinov
Copy link
Member

Example:

relations: Set(2) {
  { to: 'Company', type: 'many-to-one' },
  { to: 'Address', type: 'one-to-many' }
},

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 a pull request may close this issue.

2 participants