Hi,
Is it possible to stop a save cascading to sub-records?
I've noticed this before causing a lot of un-necessary queries, however now it's causing bugs in my application.
I've had a look in the abstractRecord.cfc file, and I think it's the afterSave() method that causes child records to be saved.
If I was to overwrite this method in my custom Record cfc so that nothing happens, is this likely to cause other problems?
Obviously I would check that I wasn't relying on the save cascade anywhere else.
Ideally it would be good if record.save() had an argument you could use to cancel the cascade, a bit like you can use an argument to stop using transactions.
Thanks,
Gareth