On 2000.12.06 15:48:58 +0000 Fedor Karpelevitch wrote:
> I believe all the problems with save method (which I also love) root from
> the fact that "newness" of a record is determined by it's autogenerated
> ID
> being unset which seems to be a bad idea, because tables may not have
> such
> an ID at all (x-ref tables for example). So I think the right way to to
> it
> is to add a boolean property isNew to BaseObject which would be true by
> default and would be set to false either in it's save() method or when
> it's
> loaded by it's Peer.

+1 - that sounds like a _far_ cleaner way of doing it.

-- 
Sean Legassick
[EMAIL PROTECTED]
      Czlowiekiem jestem i nic co ludzkie nie jest mi obce  
      
      



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to