Closed richardmatthewsdev closed 7 years ago
Have you tried register relations manually?
class UsersRelation < ROM::Relation[:sql]
register_as(:users)
dataset(:UsersTable)
end
Oh na I didn't see that you could do that :). I will give that a go, thanks!
Is it still a problem?
Closing this since I'm pretty sure setting register_as
solves this problem
Hey,
This is kind of an odd issue, but I was wanting to use ROM to read from a SilverStripe database into a rails application.
My problem is basically that SilverStripe names it's tables like Ruby names it's classes, such as 'MyTable'. So I am unable to do something like
as mine would be
Is there a way around this?
Thanks, Richard