Re: is my approach to using DB_DataObject sensible?
| From: | James Stewart | Date: | Wed, 28 Sep 2005 20:04:07 +0000 |
| Subject: | Re: is my approach to using DB_DataObject sensible? | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21135@lists.php.net to get a copy of this message | ||
On Sep 28, 2005, at 3:53 PM, Roger Rohrbach wrote:
Justin Patrin wrote:I regularly work with DB_DataObject while my schemas are in flux. So long as you place your code beneath the lines:On 9/26/05, Roger Rohrbach <roger@ecstatic.com> wrote:My schema is in flux, and leaving the auto-generated classes alone allows me to update them automatically when the schema changes, rather than maintain them by hand.I'm using DB_DataObject for the first time. After playing around with it a bit, and given the following: * I don't want to edit the auto-generated classesWhy not? This is the sensible way to do things.
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
Then when you regenerate the DOs your code will remain intact.
James.
--
James Stewart
Play: http://james.anthropiccollective.org
Work: http://jystewart.net