Re: Re: DB_DataObjects save method

From: Date: Fri, 29 Oct 2004 21:33:54 +0000
Subject: Re: Re: DB_DataObjects save method
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34171@lists.php.net to get a copy of this message
Another option here (again, a Propel thing, sorry) is to just store the columns that change. I'm trying to remember ... doesn't DBDO use the overload methods __set() and __get() to store the db info? So I guess in those methods you could store the modified columns (?).
Only when you use it. It also allows direct setting/getting esp. for those of us on PHP4 where overloading either crashes PHP or breaks pass-by-ref. This simply would not work unless DO enforced this method of doing things.
Ahh ... well, a good argument for why mutator methods are a good idea. Alan & I have already disagreed on that :) -Hans

« previous php.pear.dev (#34171) next »