Mark,
isDirty is not really a database functionality.  Most of the time isDirty() is there to inform you that a child or parent object did not any data.

So isDirty can tell you if a join was successful or not.

Teddy

On 7/25/06, Mark Stanton <[EMAIL PROTECTED]> wrote:
Thanks Teddy - definitely a useful introduction.

One bit was particularly relevant:

"When Record objects are validated the validation cascades to dirty
children.  So if you have a user who hasMany addresses, when you call
user.validate() it will validate any addresses that are dirty."

That makes complete sense and has given me a big hint in how to tackle
a problem that I was thinking of using a class table inheritance
pattern on, but hadn't worked out how.

But that also makes me think that what I am seeing now is a bug - the
Agency Record is NOT dirty.

Mark

On 7/26/06, Teddy Payne < [EMAIL PROTECTED]> wrote:
> Mark,
> This link may help:
>
> http://www.mail-archive.com/[email protected]/msg01261.html
>
> It is the introduction of the validator and details about validation.
>
> Teddy
>
> --
>
> <cf_payne />
> http://cfpayne.wordpress.com/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> Reactor for ColdFusion Mailing List
> [email protected]
> Archives at:
> http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --


--
Mark Stanton
Gruden Pty Ltd
http://www.gruden.com


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --




--
<cf_payne />
http://cfpayne.wordpress.com/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to