On 4/18/06, Doug Hughes <[EMAIL PROTECTED]> wrote: > 1) The event model is gone (sorry sean, you need to update your preso > again!). This has been replaced in favor of another feature.
You didn't say which feature - but it looks like an event model still exists below the surface: see below. > (Note, calling user.getAddress().delete() will delete the user because the > user can't exist without the address, but calling user.delete() will not > delete the address) This is dangerous. What about a parent object that hasOne foo and hasOne bar? If you do parent.delete() you orphan foo and bar, if you call parent.getFoo().delete() you still orphan bar. Also , what about this scenario: 1. addr = user.getAddress(); addr.delete(); // user is deleted now, yes? 2. // assume parent/foo/bar foo = parent.getFoo(); bar = parent.getBar(); foo.delete(); // parent and foo are deleted, bar is orphaned bar.delete(); // what happens?? > Records also have beforeSave(), afterSave(), beforeDelete(), afterDelete() > and beforeLoad() and afterLoad() methods. I suspect theses can be > overridden, but be sure to call the super method! (they're all private so > you can't manually call them.) This smells like an event model to me - how is it different, given that I can override these in my user/custom record CFC? -- Sean A Corfield -- http://corfield.org/ Got frameworks? "If you're not annoying somebody, you're not really alive." -- Margaret Atwood -- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

