Re: getLinks
| From: | Alan Knowles | Date: | Thu, 01 May 2003 15:21:41 +0000 |
| Subject: | Re: getLinks | ||
| References: | 1 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-5167@lists.php.net to get a copy of this message | ||
Niklas Eriksson wrote:
Dear Subscribers, I have severe problems implementing getlinks() in my database application, no matter how I do it i just get the following when I make a var_dump of the DataObject I am trying to link from ... might help with a <PRE> tag..ok, looks like a bit of debugging could be added to getLinks().. after you have called getLinks() and it fails - try doing print_r($_DB_DATAOBJECT); which should print dataobjects 'quasi' static vars.. I suspect it's just not loading the link ini file for some reason.. Regards Alan
object(dataobjects_image)(22) { ["__table"]=> string(5) "Image" ["id"]=> string(1) "9" ["name"]=> string(4) "test" ["uploaded"]=> string(14) "20030429223731" ["ImageCategorys_id"]=> string(1) "1" ["description"]=> string(0) "" ["photograph"]=> string(0) "" ["file"]=> string(9) "bauta.jpg" ["_DB_DataObject_version"]=> string(3) "1.0" ["N"]=> int(1) ["_database_dsn"]=> string(0) "" ["_database_dsn_md5"]=> string(32) "07769e23fb5775ee91094dfe908961c2" ["_database"]=> string(4) "test" ["_condition"]=> string(0) "" ["_group_by"]=> string(0) "" ["_order_by"]=> string(0) "" ["_limit"]=> string(0) "" ["_data_select"]=> string(1) "*" ["_DB_resultid"]=> int(0) ["_link_loaded"]=> bool(false) ["_join"]=> string(0) "" ["_lastError"]=> bool(false) } I have tried both using a .ini file and not, the "link field" in the table is correctly named and the dataObjects_prefix is corrctly set int the db.ini file... But getlinks simply will not get any links!!! Does anyone have a clue, is there a setup parameter I have missed?? Best Regards Niklas Eriksson