Re: Problems understanding delete behavior

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Dec 09 2003 - 13:29:16 EST

  • Next message: Tore Halset: "Re: prefetching"

    > Is my code correct for performing deletion? Why is the deleted
    > TestGroup
    > being returned at all? Isn't this rather inconvient to have to check
    > returned objects to see if their status is TRANSIENT or not? Do we
    > have to
    > explicity call both:
    >
    > group.removeFromTestSubjectArray(subject);
    > dataContext.deleteObject(subject);
    >

    Hi Mark,

    Try setting delete rule for to-one ObjRelationship from TestSubject to
    TestGroup as "NULLIFY" in the Modeler. This should take create of the
    problem, and the first line in the code above can be removed.

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue Dec 09 2003 - 13:29:21 EST