Re: Problem with getlinks() in DataObjects

From: Date: Thu, 01 May 2003 15:40:07 +0000
Subject: Re: Problem with getlinks() in DataObjects
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5169@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 ...
Hi, can you provide to us the exact name and DB type of your database and a sample of your links.ini file ? If your database is called : mydatabase you should have at least 3 ini files 1 which could be called create.ini containing all the config stuff [DB_DataObject]
database        = mysql://user:pass@host/mydatabase
schema_location = /path/to/DataObjects class_location = /path/to/DataObjects require_prefix = DataObjects/
class_prefix    = DataObjects_
;seq_tablename = __IGNORE__ ignore_sequence_keys = debug = 1 debug_ignore_updates = 0 production = 0 ------------------------------------- 1 called : mydatabase.ini with all the tables, fields and keys descriptions [mytable1] id = 2 handle = 2 password = 2 mylink = 2 [mytable1__keys] user_id = 2 ---------------------------------- 1 called mydatabase.links.ini [mytable1] mylink = mytable2:mylink_id in my case, links didn't work until the links.ini file have the same prefix name as the tables ini file. maybe, just check that. hope it helps Xavier

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