Hi,
I have a to-many relationship (Events -->> EventServices). I can add and
remove EventServices (Thanks to David Neumann's help) now but the
EventServices records do not actually get deleted. I'm using
removeObjectFromBothSidesOfRelationshipWithKey(). Reading about the method
says that it just sets the relationship key to null (in this case, EventID)
which it does. That made me think that I should call
removeObjectFromBothSidesOfRelationshipWithKey() and then deleteObject().
Then I looked at a sample project I have that uses the OpenBaseLite adaptor.
It has a similar relationship (Customers -->> Payments). When I delete a
Payment, removeObjectFromBothSidesOfRelationshipWithKey() is called and the
payment is truly deleted. Looking at the data through EOModeler's Data
Browser, the old Payment is no longer there. When I look at my EventServices
table, the records are there but the EventID (the foreign key that links the
relationship) is simply set to <null>.
Any tips? Should I even be using
removeObjectFromBothSidesOfRelationshipWithKey()? Maybe deleteObject()?
Maybe it's this ODBC driver?
Thanks a lot
--Marc Respass
mailto:[EMAIL PROTECTED]
http://www.ultranet.com/~mer/
"Our aim is to make our standards ubiquitous."
Alec Saunders, manager of Microsoft's intelligent appliance division