[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GDL2] Changes in EODatabaseContext.m
From: |
Manuel Guesdon |
Subject: |
[GDL2] Changes in EODatabaseContext.m |
Date: |
Sat, 30 Nov 2002 20:35:04 +0100 (CET) |
Hi,
I've made changes in EODatabaseContext -_primaryKeyForObject: to handle
the following case:
we have an object PARENT fetched from the base. It has relationship
named CHILDS which propagates primary key.
When we insert a child in PARENT for this relationship, as inserted
objects are processed before other objects during save, the CHILD relay
it's PK (i.e. EONull) to PARENT instead of the inverse.
So -_primaryKeyForObject now look for propagatesPrimaryKey
relationship of the objects to force parents to relay their pk and as this
build the object PK.
I'n really not sure that's the best place to do (and even the best way) so if
someone has a
better idea, he/she 's welcome :-)
Manuel
--
______________________________________________________________________
Manuel Guesdon - OXYMIUM <address@hidden>
14 rue Jean-Baptiste Clement - 93200 Saint-Denis - France
Tel: +33 1 4940 0999 - Fax: +33 1 4940 0998
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GDL2] Changes in EODatabaseContext.m,
Manuel Guesdon <=