Closed hprange closed 12 years ago
Suppose Foo has a relationship to Bar marked to cascade delete. The following code produces an exception.
@Test public void cascadeDelete() { Foo foo = Foo.createFoo(ec);
foo.setBar(Bar.createBar(ec)); foo.deleteObject();
ec.saveChanges(); }
Suppose Foo has a relationship to Bar marked to cascade delete. The following code produces an exception.
@Test public void cascadeDelete() { Foo foo = Foo.createFoo(ec);
foo.setBar(Bar.createBar(ec)); foo.deleteObject();
ec.saveChanges(); }