I think Luis meant George’s coldbox version might be old. I can say in my case the 3.8.x version, that I had lying around and I was referencing, didn’t have the methods, but it appears in newer versions it was added along with the announcment of the interception points.
So in my case, Luis’ assertion that the coldbox version was dated was right on. George made it sound like he already had those preFlush and postFlush methods in his EventHandler.cfc, with the announce interception points in them though, so his coldbox version might be up to date.
Just an FYI I pulled ContentBox by doing this in Commandbox forgebox install contentbox. Just a thought can you please give me a link Luis that you know for sure that ColdBox is CF11 ready and I can swap it out and see. Could be that the old Coldbox is somehow embedded with ContentBox by mistake.
Github version doesn’t appear to have the methods in that tag. Maybe i’m looking at the wrong place.
maybe just add these methods from Luis’ previous post to the contents of the .cfc on git hub and see where that gets you.
/*** Called before the session is flushed. */
public void function preFlush(any entities){
announceInterception(“ORMPreFlush”, {entities=arguments.entities});
}
/**
Called after the session is flushed.
*/
public void function postFlush(any entities){
announceInterception(“ORMPostFlush”, {entities=arguments.entities});
}
Are you sure your content box is using the correct “coldbox” folder that you think it is? Like a system mapping pointing to an old version instead of the content box mapping?
Please double check your Application.cfc one more time, it appears that you possible have the worng EventHandler. After double checking your initial error message, you have the WBEventHandler and Not the EventHandler that contains the pre/postFlush.
Once you have done that you will be good to go.
Luis, what is the difference between these two and why is one missing the required events?
And check that it is extending the right one, there are two EventHandlers, one is prefixed with WB, which is in your error. As this is not the one you want, please look at changing it to the one without the prefix of WB.