Re: Re: DB_DataObjects save method

From: Date: Fri, 29 Oct 2004 20:31:50 +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-34159@lists.php.net to get a copy of this message
On Fri, 29 Oct 2004 15:45:49 -0400, Andrew S. Nagy <asnagy@webitecture.org> wrote: > Hans L wrote: > > > I'd imagine this would work great. This is roughly how Propel save() > > method works. Of course you might have to deal with the exceptional > > I haven't used propel, i need to get on the php5 bandwagon! > > > objects that do not have primary keys. Another option would just be > > to have a isNew() method that is false if the method is hydrated from > > "Hydrated" ... I like this, I will use this more often :) > > > database and true if the method is created via "new Objname()". > > 'Course it's been awhile since I looked at DBDO's design, but seems > > like either of these would be pretty straightforward to implement. > > This is an interesting idea, Alan, any thoughts? > BTW, DB_DataObject_FormBuilder does exactly this kind of thing in its processForm method. -- paperCrane --Justin Patrin--

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