This really isn’t a ColdBox issue, per se, but more of an ORM event handling question.
The issue sounds like an ORM mapping issue. How are the alerts mapped to the vendor and how are the saves of the alerts being handled within the async interception.
Since these alerts are predicated on a state change to the vendor, I would suggest using the `postInsert` and `postUpdate` interception points, instead.
I would also suggest using the PK of the vendor (instead of passing the object) and using the `new()` or `populate()` methods for creating the alerts. This ensures that the vendor entity being loaded in the async thread is clean.
HTH,
Jon
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit
https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/coldbox/d8d81457-189d-4d7e-af67-eae286cb2fa4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+unsubscribe@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/92e24d60-785b-4a82-8ce7-025d074a5194%40googlegroups.com.