Hi all,
I had some code I was testing in Lucee and came across this issue when calling the save() method that is available in the BaseORMService class.
The error I'm receiving is: "Flush during cascade is dangerous" and thus not allowing me to save.
The error is coming from line 793 of the BaseORMService.cfc
if( arguments.transactional ){
return $transactioned(variables.$save, arguments);
}
I've tried updating Lucee to versions 4.5.1.003 and 4.5.1.008 and no luck there either. I know this is more of a Lucee issue and using transactions than it is a ColdBox issue, but wanted to make everyone aware of this in case anyone was planning to switch over to Lucee and is using the cborm module.
I will also say, even using entitySave() wrapped in a transaction causes issues as well in Lucee and I believe there are some tickets in the Lucee bug tracker surrounding this, so as I said it's not really an issue with CB but if anyone has a work around for the time being I would be all ears.
Thanks,
Ben