Re: DataObject compatibility

From: Date: Fri, 27 Jun 2003 08:09:26 +0000
Subject: Re: DataObject compatibility
References: 1  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-6273@lists.php.net to get a copy of this message
Markus Wolff wrote:
Hi there, I´m considering using DB_DataObject for a new app. However, I have two questions remaining about it: 1. Has it been tested with other databases than MySQL? I need support for at least Microsoft SQL Server as well. Postgres and Oracle would be neat, too ;-) I've heard stories of MSSQL/Oracle useage, as some bugs in DB where picked up by the Generator.
limit(), will issue a pear:error on mssql & oracle, as the limit emulation for this is a little complex. I'm using it on a major project on Postgres at the moment - hence, there have been a number of fixes in the last few versions to assit with postgres support.
2. Is it possible to add class properties that are not treated as table fields? I often like to have getGrid(), getForm() etc. methods that use a common template object that is stored in a property, like: class Foo {
       var $field_one;
       var $field_two;
       var $_templateobjects_are_no_fields;
}
as long as they dont overlap the table field names, they should be ignored in general. I do this alot, - tricks like overriding fetch, to do some extra calculation.. etc. is quite nice.. Regards Alan
Thanks in advance for any info ;-) Regards, Markus


« previous php.pear.general (#6273) next »