Re: EOModeler fetch spec bug

From: Mike Schrag (mschra..dimension.com)
Date: Mon Jul 17 2006 - 10:05:54 EDT

  • Next message: Mike Schrag: "Re: EOModeler Flatten relationship bug"

    Fixed and committed ... Thanks Pierre.

    ms

    On Jul 17, 2006, at 5:47 AM, Pierre Frisch wrote:

    > Hi Mike,
    >
    > I have done a few test to see how the editor behave when saving and
    > why I get all my models as "dirty".
    >
    > I think this has to do with the fetch specs. When I save one of my
    > models it erase the value in the fetch spec. Apart from the layout
    > that change because of the different plist serializer the problem
    > is with the value dictionary in the qualifier. The key "_key" is
    > missing. I think the problems lies with
    > org.objectstyle.wolips.eomodeler.model.EOKeyValueQualifier when
    > serializing and deserializing the value line 105 and 130 is
    > referenced as "name" instead of "_key".
    >
    > Pierre
    >
    > Before the save:
    > name = {
    > class = EOFetchSpecification;
    > entityName = AdStatus;
    > fetchLimit = 0;
    > isDeep = YES;
    > qualifier = {
    > class = EOKeyValueQualifier;
    > key = name;
    > selectorName = "isEqualTo:";
    > value = {"_key" = name; class = EOQualifierVariable; };
    > };
    > refreshesRefetchedObjects = YES;
    > sortOrderings = (
    > {class = EOSortOrdering; key = position; selectorName =
    > "compareAscending:"; }
    > );
    > };
    > After the save:
    > name =
    > {
    > refreshesRefetchedObjects = Y;
    > fetchLimit = 0;
    > sortOrderings =
    > (
    >
    > {
    > key = position;
    > class = EOSortOrdering;
    > selectorName = compareAscending:;
    > }
    > );
    > class = EOFetchSpecification;
    > qualifier =
    > {
    > key = name;
    > value =
    > {
    > class = EOQualifierVariable;
    > };
    > class = EOKeyValueQualifier;
    > selectorName = isEqualTo:;
    > };
    > entityName = AdStatus;
    > isDeep = Y;
    > };
    >



    This archive was generated by hypermail 2.0.0 : Mon Jul 17 2006 - 10:06:02 EDT