Hello,

I have a sirious problem and don't know why it is happening.

In my domain, I have mapped these relationships

1. Task HasMany Parameters
2. Task HasMany Schedules

[Task]--------------------|< [Parameter] task_id is the foreign key
[Task]--------------------|< [Schedule] task_id is the foreign key

The first relationship is decored with the "Cascade =
ManyRelationCascadeEnum.All" attribute
The second relationship is decored with the "Cascade =
ManyRelationCascadeEnum.Delete" attribute

The problem is, that when I update the Task, all the Schedules get
updated but with task_id in NULL, so the
relationship is lost.

Parameters are updated correctly.

so

Why is updating my Schedule when I update my Task if the cascade is
set to Delete ??

I thought it will only check my Schedule if Task was deleted

Hope you can help me..

Best regards and thanks in advance


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to