Yes, those two already duplicate some code, traits
would be of a big
help here ;-)
was wondering if they could could be grouped... an option description
is a kind of relationDesc except the reference is not a container but a
single description...
Anyway, I would subclass the ToOneRelation and try to
copy the things
you need from the SingleOptionDescription (probably only #options)
over into your new class. The same for the views.
I'll try that and let you know if I get something working
So one thing you have to make sure beforehand is that
the code in
MADynamicObject works as expected by copying the contents of the
block to a workspace and testing it there.
ok I see :)
I tend to discourage the use of MADynamicObject because
it usually
causes more troubles than it solves. It is much a better approach to
create your descriptions dynamically on the instance side, if you
need to build them depending on the state of your model.
Isn't MADynamicObject used because of the cached description ?
Thanks Lukas ;)
Cédrick