Lukas,
Sorry to be confusing. But here's more of an explanation.
I have a class ImageFolderDescription, which is a subclass of
MAToManyRelationDescription. This description is added to my
PlantModel through a DescriptionEditor.
So, when someone goes to the edit form for PlantModel, the form
contains an MAOneToManyComponent for the Plant's
ImageFolderDescription. When they click the add button to create a
new image in the ImageFolder, it shows them the editor component for
the image--no problem. But once they are done editing the image and
click the Save button, they get the "UndefinedObject>>copyWith:"
error.
In fact it doesn't matter which class I add to the ImageFolder,
whether its an image or and Object or a credit card, it still throws
this error.
Chad
On 5/10/07, Lukas Renggli <renggli(a)iam.unibe.ch> wrote:
It's
actually the MAOneToManyComponent>>value that is nil, and not
the model.
This error occurs during the answer back from the model editor to the
collection report. It has something to do with the
MAOneToManyComponent's memento having a nil value for #cache.
And in your object the value is actually a collection? Usually the
cache just reads the value from your object.
I am confused. How can I reproduce?
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
Chad Nantais
Buy my album Zero Ground on iTunes:
http://tinyurl.com/2sojcn
View my artist profile on MySpace Music:
http://myspace.com/chadnantais
Hear my music on-demand on Last.fm:
http://www.last.fm/music/Chad+Nantais