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
Including Parent Entity with Child Entity #655
Comments
Hmmm looks like you ran into an edge case caused by using nonstandard property names (usually entity name is with first letter uppercase, while property names are with first letter lowercase) - the ORM sees a property that has a name One workaround could be to change the property name to something else. |
Thanks @B4nan , I'll update property names and try again, and let you know about the results. How long would it take to fix the bug ? |
Should be quite easy, but I would rather fix it in v4 as rebasing v4 with changes done in master is the painful part here... |
Hi @B4nan , as you mentioned changing property name solved it. When a bugfix is released, I'll be glad to test :)
|
Previously `QueryBuilder` was blindly expecting that any populate request for a property that name collides with an entity name means we want to do M:N population. This fixes the check by verifying the `meta.pivotTable` flag. Also new method on `MetadataStorage` that returns possibly undefined is added to improve typings in internals. Closes #655
Closing as fixed in v4, will be part of alpha 6. |
Previously `QueryBuilder` was blindly expecting that any populate request for a property that name collides with an entity name means we want to do M:N population. This fixes the check by verifying the `meta.pivotTable` flag. Also new method on `MetadataStorage` that returns possibly undefined is added to improve typings in internals. Closes #655
Previously `QueryBuilder` was blindly expecting that any populate request for a property that name collides with an entity name means we want to do M:N population. This fixes the check by verifying the `meta.pivotTable` flag. Also new method on `MetadataStorage` that returns possibly undefined is added to improve typings in internals. Closes #655
I have 2 entity with bidirectional relationship (One Uygulama with Many Modul and Many Modul to One Uygulama).
I have a UygulamaId foreign key in my Modul table in my database which I join two tables.
Entity Uygulama
Entity Modul
When I try to return an Uygulama with all Moduls, I successfully return it with:
However when I want to return a Modul with its parent Uygulama:
returns :
What am I missing here?
Kind regards
The text was updated successfully, but these errors were encountered: