no, there is no easy way to "assert" that any model has been detached, because they do not keep a flag.
in 1.5 we will implement it so that all fields of a component that implement idetachable are detached in the end of request via reflection, so that should help somewhat. -igor On Thu, Aug 28, 2008 at 1:57 PM, Kaspar Fischer <[EMAIL PROTECTED]> wrote: > Is there an easy way to assert that all models are detached at the end of > the > request? > > It does not look so easy to check this as models do not have common base > class > where one could register them for a check... > > I often use an additional model in a component and store it as a member > field; > if I forgot to detach() this model in the onDetach() handler, I would have a > "dangling" model. That caused me quite some trouble once and I want to avoid > it in the future. > > Thanks, > Kaspar > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]