Bubbling up changes from grandchildren objects

Bubbling up changes from grandchildren objects

Old forum URL: forums.lhotka.net/forums/t/454.aspx


jdelano posted on Thursday, June 22, 2006

I've written an application using the CSLA 1.5 framework and I'm trying to port it over to CSLA 2.0. I have the following object structure:

Account (root) --> Contacts (child collection) --> Contact (child object) --> Mailings (grandchild collection) --> Mailing (grandchild object)

The problem I had in the 1.5 framework was that if I made a change in the Mailing grandchild object, there was no way in the default framework for the Account root object to be notified of the change.  I ended up using ActiveObjects to get it work okay.

My question is whether or not this functionality has been added to the 2.0 framework, and if anyone has run into this issue, are there any "gotchas" that I need to look out for?  In other words, do I still need to use ActiveObjects to get this functionality to work, or is it native to the new framework?

Thanks,

John

Wal972 replied on Thursday, June 22, 2006

Set the propertyhaschanged for each level and then reference call back up the line.

Copyright (c) Marimer LLC