Ryan Albrecht
07/14/2023, 12:23 PMBaseEntity -> Trade -> Forward The Trade class has a postSave() method defined. When I save a 'Forward' entity the postSave( ) interception point is firing twice. When saving a subclass entity, Quick will call .save() on the Parent as well, causing the double firing. Is this expected behavior? Personally I expected postSave() to fire once on the parent class.Ryan Albrecht
07/14/2023, 12:52 PMsknowlton
07/14/2023, 1:14 PMsknowlton
07/14/2023, 1:15 PMRyan Albrecht
07/14/2023, 1:44 PMsuper.preSave or something like thatRyan Albrecht
07/18/2023, 12:22 PMpostSave( ) method I simply check the entity name that the method was called on. Quick will save the entity name in the evenData argument for the interception point.
// Parent Entity Trade.cfc
function postSave(event, eventData, buffer, rc, prc){
if(arguments.eventData.entityName eq 'Trade'){
//do stuff here
}
}