Re: Issues using functions starting with get in DataObject
| From: | Justin Patrin | Date: | Tue, 03 May 2005 05:17:54 +0000 |
| Subject: | Re: Issues using functions starting with get in DataObject | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19061@lists.php.net to get a copy of this message | ||
On 5/2/05, Dan Rossi <pear@electroteque.org> wrote:
> Hi there, I have discovered some clashes using typical getter methods
> ie getTable which i am using to display the data of the table in array
> for a list menu. However Formbuilder is using this somehow so getTable
> is displaying "cannot do two queries on the same object"
>
> Any ideas ?
>
DB_DataObject is meant to use get* methods to access the columns. I
assume you have a column called "table"?
You shouldn't use methods named "get*" as they conflict with column
getters. get_table would be better.
--
Justin Patrin