FROM : Thomas Dingler
DATE : Fri Nov 02 07:01:06 2007
Hi,
I have a strange problem with Core Data.
I'm not able to delete relationships when delete rule is "Nullify".
Performing "validateForDelete" fails for each relationship. It comes
up with a validation error under Leopard. Under Tiger it works as
aspected.
I filed a bug report and contacted the DTS team, but no luck until
now. So I want to ask the list if there are any ideas how to deal it.
You can test it very easily: Use the Core Data Project Template in
XCode, create a model with Employee and Salary entities and connect
them with a relationship. Then create a Master-Detail Interface where
you can add an employee. Finally write some code, that creates a
salary, sets the salary to the employee's salary and then run
validateForDelete: for the employee. This will cause an error.
If you want to get a test project, just mail me.
Any ideas?
Greetings,
Thomas
DATE : Fri Nov 02 07:01:06 2007
Hi,
I have a strange problem with Core Data.
I'm not able to delete relationships when delete rule is "Nullify".
Performing "validateForDelete" fails for each relationship. It comes
up with a validation error under Leopard. Under Tiger it works as
aspected.
I filed a bug report and contacted the DTS team, but no luck until
now. So I want to ask the list if there are any ideas how to deal it.
You can test it very easily: Use the Core Data Project Template in
XCode, create a model with Employee and Salary entities and connect
them with a relationship. Then create a Master-Detail Interface where
you can add an employee. Finally write some code, that creates a
salary, sets the salary to the employee's salary and then run
validateForDelete: for the employee. This will cause an error.
If you want to get a test project, just mail me.
Any ideas?
Greetings,
Thomas
| Related mails | Author | Date |
|---|---|---|
| Thomas Dingler | Nov 2, 07:01 | |
| mmalc crawford | Nov 2, 07:09 | |
| Thomas Dingler | Nov 2, 07:46 | |
| Thomas Dingler | Nov 2, 09:25 |






Cocoa mail archive

