John's right, there is an outstanding enhancement request:

http://tracker.transfer-orm.com/issue.cfm?p=89977683-A728-9CD3-ABD9545A91734422&i=0D0237F3-0A4E-B214-130700261356069B

but I'm not sure where it is on the road map.

I've never done it, but if I was going to try to implement this in an
app I'd probably put the logic in the gateway.  Assuming all of your
Transfer interaction is centralized in your gateway, have a delete()
method in the gateway that actually sets the flag and performs an
update.  You could also add logic to whatever method you have in your
gateway for returning Transfer objects (mine's called get()), so that
it would not return "deleted" objects.  For any method that returns
multiple records, you'd need a way of removing "deleted" records from
the results.  Possibly setting up a method that accepts a query and
then does a QofQ to remove any "deleted" records.  You could then call
that on any result set before doing anything with it.  You'd also have
to worry about any composites - if an order contains products Transfer
wouldn't know to remove the deleted products, but perhaps that could
be handled using a condition on your collection (which is supported in
the config file).

I'm sure that there are other areas that I haven't considered. It
wouldn't be simple, but I imagine it's doable.  Would be an
interesting exercise to see how easy it would be to do.

Bob

On Tue, Mar 3, 2009 at 11:01 AM, John Whish <[email protected]> wrote:
> I believe that soft delete is already on the road map. I haven't tried it,
> but you should be able to overwrite the Transfer save method to do an update
> instead of a delete. So you code would still call the delete method.
>
> >
>



-- 
Bob Silverberg
www.silverwareconsulting.com

--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to