-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
HMT self-referential relationship breaks while calling the inverse join relationship #2166
Comments
Can you post the schema.rb for this, a rails app, or possibly port it to the Rails test suite? I can't really fix this without a fully self contained test case. |
Sure, I can post the schema.rb; however, I am not experienced enough to write a test suite...
|
@jlalin this may help you |
@ghost Is this still an issue? |
Hi @ghost! Any updates? Are you still seeing this problem? We haven't heard from you in a while. |
I'm closing this because we don't have enough information to reproduce this problem and there is no reply from @ghost. If this still persists, please update the ticket with clear reproduction steps or a sample app, and we'll reopen it. Thanks! |
When I call the inverse relationship inside a lambda function the model breaks and I can't access
successors
anymore. I have also tried to rewrite the recursive function to use the family association directly, instead of breakingsuccessors
,inverse_families
now breaks, i.e., it returns null instead of the associated records.If I call
predecessors.each
inside a lambda function nothing breaks, although it breaks when callingsuccessors.each
as mentioned above.Family
Shipyard
The text was updated successfully, but these errors were encountered: