-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Hierarchical datasets via a join table #196
Comments
You need to add |
That gives me a different error because
|
Try rom-sql 1.3.0 I fixed a bug recently that seems related |
I am using the latest gems - here's the full backtrace.
|
I believe I'm encountering a similar problem. I have relations Contacts, Bookings, and BookingContacts. I'm trying to configure a BookingContactsRepo (which seems a fine place to define the logical operation for "here is the first contact, set up a contact and a potential booking so that they have a reference number to work with for the future"). However, attempting to do so tells me that
... which is the line in my app where I attempt to
which is defined as
I'm pretty confident it's registered, but even so, added this line to my setup after the dry-web-roda autogenerated auto-registration line:
whereupon I get a This is all on gems freshly installed within the past week, including:
|
I'll try to reproduce this with rom 4.0.0.beta. There's a big chance it'll work there as I've fixed a lot of issues related to handling aliased relations/associations. It will not be fixed in rom-sql 1.3.x unfortunately, because it'd be too hard to backport the fixes. |
I'm trying to construct an employee hierarchy where the manager/subordinates relationship is specified using a join table (called positions).
However, when I have the setup below, I get an error where ROM can't find the association.
I'm also hoping to be able to also establish a manager association so that all subordinates would have their manager setup in a the result set, but I'm beginning to wonder if this almost circular reference is something that ROM can support with regular associations - should I, instead, be using custom views? If so, a pointer would be appreciated.
Anyway, here's my example that blows up:
The text was updated successfully, but these errors were encountered: