-
Notifications
You must be signed in to change notification settings - Fork 165
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
@Labels setter is not called when loading entity #414
Comments
There are a couple a changes when migrating from OGM 2.1 to 3.0. One of them is that getters/setters access is not supported anymore. The docs are not published yet, but should very soon. In the meantime, you can check the migration guide here. Can you have a look give some feedback please ? Maybe it is something we should improve in the docs. From what I see in your example, you might be interested in the |
Thx @nmervaillie I'll check and give some feedback. |
It seems |
Ok, that seems like a bug. |
I can confirm it's definitely a bug. I hope the tests I included in my new PR (#484) will help solve this. Please, check on this test: https://github.com/neo4j/neo4j-ogm/pull/484/files#diff-8af1ea6d5cb8f598b436005e95aeba80R83 |
I'm closing this issue in favor of #516. We don't support setter-semantics anymore and the bug regarding |
Expected Behavior
Whenever loading an entity, OGM should call (or at least have the option to) @Labels setter property.
Current Behavior
This seems to be a regression and @Labels setter is not called anymore.
Possible Solution
IDK
Steps to Reproduce (for bugs)
Please, check a simple example I've created on my fork: jdorleans@7db1454
Context
In many cases I wanna represent transient fields in my domain as Labels. For that I need to:
However, it seems the current version of OGM does not call setter for labels anymore. As a result, all transient fields of my domain are no longer updated.
Your Environment
The text was updated successfully, but these errors were encountered: