Home > Archive > PHP Pear > May 2005 > Re: [PEAR] DataObject issue using FormBuilder
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] DataObject issue using FormBuilder
|
|
| Justin Patrin 2005-05-09, 3:56 am |
| On 5/8/05, Dan Rossi <pear@electroteque.org> wrote:
> I found the problem with dataobjects when loading the tables, in the
> find method its simply doing a select * from table not a select * from
> database.table therefore after having loaded the DO with the links ,
> the next link is still trying to load from the other selected database.
> Is there a better workaround ?
>=20
What do you mean "in the find method I'm simply doing select * from
table"? Surely you're not making a query yourself....
It sounds like you've done a bunch of customization as this question
doesn't seem to have any basis in normal DB_DO code. Please show us
some code so that we can understand what you're talking about.
--=20
Justin Patrin
| |
| Dan Rossi 2005-05-09, 3:56 am |
|
On 09/05/2005, at 1:52 PM, Justin Patrin wrote:
>
> What do you mean "in the find method I'm simply doing select * from
> table"? Surely you're not making a query yourself....
>
> It sounds like you've done a bunch of customization as this question
> doesn't seem to have any basis in normal DB_DO code. Please show us
> some code so that we can understand what you're talking about.
>
your formbuilder is calling find to see if there is any data for
generating the list menus. When i mean find i mean the FIND method in
DataObject. The query is setup as SELECT * FROM table inside the find
method, I had to add SELECT * FROM database.table to make it work, I
only have once crossed database link. It works but it means my tweaked
DataObjects file is even more branched out than I really wanted it to
be :)
I could send my diff to DataObject but its been advised that I send the
different changes as different diffs which will take forever :|
>
|
|
|
|
|