Re: [Modeling-users] self.getId()
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2003-03-27 12:48:44
|
Sebastien Bigaret <sbi...@us...> wrote: > [snip] > > >=20 > > > You are using getId() (returning article._id) instead of getID() > > > (returning the PK value stored in its GlobalID) ! > > >=20 > > >=20 > > > However, we have a bug here: Article's PK did not get its value. > >=20 > >=20 > soif> Yeah you got it :)=20 > soif> If don't use the id as classProperty as said in the doc, and use=20 > soif> the getID() helper sent before on the list it works well :)=20 >=20 > I included a small patch at the end of the message to solve this issue > --I'll make the unittest tomorrow and will correct this on the cvs > rep. Now article._id should get its value as expected after > ec.saveChanges(), if it's set as a class property. Done, you'll find it on cvs, EditingContext v1.22. Yannick, this may be of some interest to you as well: as far as I remember you declare your PK as class properties, too. -- S=E9bastien. |