Nope it's definately not running it.
I've just tested out the following code:-
getTransfer().readByQuery('finance',local.query);
And told it to only display the memento if I get a persisted object back of
class name 'finance'. It's not dumping anything.
<cffunction name="actionAfterNewTransferEvent" access="public"
returntype="void" output="false" hint="Actions an event before a create
happens" >
<cfargument name="event" hint="The event object"
type="transfer.com.events.TransferEvent" required="Yes">
<cfswitch expression="#event.getTransferObject().getClassName()#">
<cfcase value="finance">
<cfdump var="#event.getTransferObject().getMemento()#"
label="Running"><cfabort>
<cfif event.getTransferObject().getIsPersisted()>
<cfdump var="#event.getTransferObject().getMemento()#"
label="Running"><cfabort>
</cfif>
</cfcase>
</cfswitch>
<cfreturn />
</cffunction>
If I move the dump outside the if statement I get back a memento of a
non-persisted object.
Thanks again for all the help
James
--
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8
You received this message because you are subscribed to the Google Groups
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/transfer-dev?hl=en