$__DB->getListOf('schema.tables');
| From: | Demian Turner | Date: | Sun, 03 Apr 2005 18:05:14 +0000 |
| Subject: | $__DB->getListOf('schema.tables'); | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18505@lists.php.net to get a copy of this message | ||
Hi Alan
I believe there's been a change to the way DB_DataObject_Generator works for Postgres in that now DataObject entities are prefixed with schema names. We used to be able to generate an entity for a table named 'foo' as Foo.php, but it now becomes Public_foo.php. Is there a way to disable this behaviour?
cheers
Demian
-------- Original Message --------
Subject: Re: [Seagull-general] still me :)
Date: Fri, 01 Apr 2005 23:53:38 +0200
From: Sbaturzio Cantina <sbaturzio@satellite1.191.it>
To: demian@phpkitchen.com
CC: Cyril AGRA <cagra@tcs.fr>, seagull-general@lists.sourceforge.net, rbenea@bluestardesign.ro
References: <1112346633.424d10099bb3d@albatros.tcs.fr> <424D17FB.6030500@bluestardesign.ro> <424D1D94.2090802@phpkitchen.com> <1112360471.424d4617f3971@albatros.tcs.fr> <424D51EF.7040800@phpkitchen.com>
Demian Turner scrisse il 01/04/2005 15:51:
Perhaps it's a postgres bug, but Pierpaolo suggests the latest CVS (just patched) installs fine on Postgres. Can you confirm this Pierpaolo?This is no PgSQL bugs. It's a new feature of PEAR DB/DataObject/Generator class. Look at lines 144-148 of that class: PgSQL entities are now generated with "schema.tables" pattern. This new feature seems unavoidable: I've looked for an options to turn back to original behavior but with no success. Actually errors in SGL are generated from 'require' instruction which look for static entities file name. Maybe if we read the right table name from mysite.default.conf.ini and use them instead of static names we solve this problem. Any suggestion? -- Un Ciao in DO Maggiore! -=) Sbaturzio (=- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Seagull-general mailing list Seagull-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/seagull-general