-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Failed to find relation class for sql adapter. #358
Comments
You need either start setup prior requiring your relation classes, or at least require |
I still can't get it working, maybe I don't understand the role of relations. I've pushed the project I am working on here https://github.com/alexandru-calinoiu/rom-test I am basically trying to get https://github.com/alexandru-calinoiu/rom-test/blob/master/spec/rom/test/repositories/posts_repo_spec.rb this spec to pass or at least run. |
I guess what I am trying to achive is this part of the relations docs: |
Found |
@alexandru-calinoiu I'll set it up for you in a couple hours |
Later ... I finally figured this out, turns out the Opened a pr to sequel in the mean time also jeremyevans/sequel#1250 :) It still does not feel right improvements are welcomed. |
@alexandru-calinoiu yeah in 2.0.0 it needs |
OK so I'm gonna close this one. I'll add a simple setup example to the docs along with a repo on github, this should help in cases like yours. |
Thanks, I believe that a slight improvement on this part of the docs will help a lot. |
i had a similar issue like you @alexandru-calinoiu and i added in my repository |
Trying to learn more about rom so I am working through the guides in fresh ruby gem project. I can't seem to figure out how to define my relations in separate files.
I have a relation defined like this:
But of course when I require it in it fails with: 'Failed to find relation class for sql adapter. Make sure ROM setup was started and the adapter identifier is correct.'
Does this mean I have to have a finalized container before I try to load the file?
The text was updated successfully, but these errors were encountered: