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

Remove setValue and getValue functions from LazyId #3

Closed
a-vezzoli-02 opened this issue May 31, 2022 · 0 comments · Fixed by #4
Closed

Remove setValue and getValue functions from LazyId #3

a-vezzoli-02 opened this issue May 31, 2022 · 0 comments · Fixed by #4
Assignees
Labels
bug Something isn't working
Milestone

Comments

@a-vezzoli-02
Copy link
Member

Describe the bug
LazyId should not be used with a delegation. Using it this way makes the code more error-prone and inefficient.
For example, suppose only the id needs to be retrieved from the object when using the delegation pattern. In that case, a whole new query and mapping must be done, while when using the LazyId, the id can be collected directly.

Expected behavior
No.

Screenshots
No.

Version

  • MySQL: Any
  • Racoon: Latest branch

Additional context
No.

@a-vezzoli-02 a-vezzoli-02 added the bug Something isn't working label May 31, 2022
@a-vezzoli-02 a-vezzoli-02 added this to the Fixes and tests milestone May 31, 2022
@a-vezzoli-02 a-vezzoli-02 self-assigned this May 31, 2022
@a-vezzoli-02 a-vezzoli-02 linked a pull request Jun 2, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant