a quick patch
....
What do I win?

Chris


On 4/1/09 3:34 PM, "Mark Mandel" <[email protected]> wrote:

> There is a ticket around on the tracker for implementing a list of
> relationships you wish to traverse down, but it hasn't been implemented yet.
> 
> Wouldn't be hard to do if anyone wants to write a quick patch ;o)
> 
> Mark
> 
> 2009/4/1 Aurélien DELEUSIÈRE <[email protected]>
>> My mistake! I've use the event delete to clean some files on hard drive
>> linked to data in tables not to cascade something else...
>> 
>> Thanks Brian for your information on Visitor I will have a look !
>> 
>> Le 1 avril 2009 14:34, Aurélien DELEUSIÈRE <[email protected]> a écrit :
>> 
>>> I confirm your feeling Jeroen. Yesterday I've tested the cascade delete and
>>> crash a lot of content in my db... grrr...
>>> 
>>> The way the cascade is implemented today is quitely not usable even with the
>>> limit set. I've managed my own cascade delete through (the
>>> powerfull) actionBefore / AfterDelete TransferEvent...
>>> 
>>> Cheers -
>>> 
>>> 
>>> 2009/4/1 Jeroen Knoef <[email protected]>
>>> 
>>>> 
>>>> Hi all,
>>>> The cascadeDelete function traverses all relationships, both up and
>>>> down. This appears counter intuitive to me. As far as I know, DBMS's
>>>> cascade in one direction, down to records that are referencing the
>>>> record being deleted. It looks natural to me if Transfer would have
>>>> implemented a similar functionality. With the current implementation,
>>>> this method is possibly very dangerous, because a delete of some
>>>> record could clear out the whole database.
>>>> 
>>>> I know there is the depth argument, but my objects don't always know
>>>> how deep to go. Also, a change in the data model might lead to a code
>>>> change, which is what Transfer is abstracting.
>>>> 
>>>> Can you explain why this method behaves as it does? Maybe with some
>>>> examples where this behaviour is just what you need? I'm quite curious
>>>> because I couldn't come up with one myself.... thanks for replying.
>>>> 
>>>> Jeroen
>>>> 
>>>> 
>>> 
>>> 


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