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

Manage relationship between Model #10

Closed
8 of 15 tasks
stombre opened this issue Sep 2, 2020 · 1 comment
Closed
8 of 15 tasks

Manage relationship between Model #10

stombre opened this issue Sep 2, 2020 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@stombre
Copy link
Contributor

stombre commented Sep 2, 2020

Path to reference graph;

  • Rewamp Relation object to store multiple attributes references
  • Work with Field.bindModel to declare reference only when the field have a Model
  • Work with ilorm to handle case of reference is a string (could probably wait to the new model to be declared before associate them).
  • Add a Field.reference(targetModel, targetField) // or refer to? // to associate a field (in a schema declaration) to another model / field
    Initial work; Add/reference #8

linkedWith:

  • linkedWith(model_id)
  • linkedWith(model instance)
  • linkedWith(query)
  • linkedWith(query) multiple (more than one on the same query)
  • notLinkedWith: same as linkedWith; opposite operation

Deep relation a =ref=> b =ref=> c (a linkedWith c)

  • Resolve deep relation between concept (in Relation class ? Dummy vs A* / Djistra ?)
  • Make linkedWith work with deep reference
  • Way to overload behavior when resolving complex reference (for handling join operator in SQL eventually)

Issue spotted:

  • Manage model reference model more than once. (throw errror at least?)

way to load a reference from an instance (ex: Model.getLinkedModelQuery() (if 1:n) OR Model.getModel() (if 1:1))

  • POC (need to explore primary value way?)

Future

  • Explore a way to manage relation between different connector
@stombre stombre added bug Something isn't working enhancement New feature or request labels Sep 2, 2020
@stombre
Copy link
Contributor Author

stombre commented Oct 3, 2020

Follow up on; #24
#25 #26 #27 #28 #29

@stombre stombre closed this as completed Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant