Hi ROM community,
Could you just give me a hint where I have to look on to implement a simple inheritance based on a attribute. To keep things simple, lets say I want to have a
ComplexProject and the inheritance attribute would be a
What is more interesting:
SimpleProject has a
value attribute which is just a String.
ComplexProject has a
value attribute which is a hash and serialized to JSON.
So then if I want to fetch projects:
it will return me instances of
ComplexProject based on the
Do I need to implement that by hand using a
map method inside users reposioty or ROM provides any predefined methods for that or at least guidelines how to do it in the most efficient way?
I am new to the ROM, I used DataMapper even before diving in to the Rails and ActiveRecord.
Now ROM seems to be a really production ready solution.