Re: DB_DataObjects save method

From: Date: Fri, 29 Oct 2004 19:45:49 +0000
Subject: Re: DB_DataObjects save method
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34158@lists.php.net to get a copy of this message
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?

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