Skip navigation.
 
ml(Leopard) Core Data validateForDelete problem
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

Related mailsAuthorDate
ml(Leopard) Core Data validateForDelete problem Thomas Dingler Nov 2, 07:01
mlRe: (Leopard) Core Data validateForDelete problem mmalc crawford Nov 2, 07:09
mlRe: (Leopard) Core Data validateForDelete problem Thomas Dingler Nov 2, 07:46
mlRe: (Leopard) SOLVED: Core Data validateForDelete problem Thomas Dingler Nov 2, 09:25