Closed cflipse closed 8 years ago
I'm also running up against this exception. I have a ROM::Configuration object with relations containing schemas - this is used to build my base ROM::Container. Elsewhere in my project I take the rom config object, add to it, and try to create a new container. I get pretty much the exact same error as above.
My current workaround is to build the base config object on-the-fly with a method, which allows me to create additional "fresh" config objects on demand. It seems to work, but I haven't tested it thoroughly yet.
We've fixed this in master, right @flash-gordon?
@solnic I think so https://github.com/rom-rb/rom/blob/master/lib/rom/schema.rb#L81 @cflipse could you check it against master branch? If it works, we should release a fix
yep, looks good
(adapted from https://github.com/rom-rb/rom-sql/issues/93 )
Schemas break when you attempt to reuse them:
Results in: