I wrote
> 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>.
Many people replied directly to me. I needed to set the Owns Destination
check box in the Inspector (Advanced). Thanks to everyone who helped.
--Marc Respass