DB_DataObject link problem (Does DB_DataObject try to set up auto links?)

From: Date: Tue, 22 Mar 2005 18:33:32 +0000
Subject: DB_DataObject link problem (Does DB_DataObject try to set up auto links?)
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18236@lists.php.net to get a copy of this message
hi there Here's the situation. I have DB_DataObject 1.7.11 I have a couple of tables I'm trying to link: products +-----------------+----------------------+------+-----+---------+----------------+ |
| Field           | Type                 | Null | Key | Default | Extra         |
+-----------------+----------------------+------+-----+---------+----------------+ |
| id              | int(10) unsigned     |      | PRI | NULL    | auto_increment |
| catalog_id      | smallint(5) unsigned |      |     | 0       |               |
| application     | varchar(255)         |      |     |         |               |
| note            | text                 |      |     |         |               |
| catalogNote     | text                 |      |     |         |               |
+-----------------+----------------------+------+-----+---------+----------------+ catalogs +---------+---------------------+------+-----+---------+----------------+ | catalogs +---------+---------------------+------+-----+---------+----------------+
| Field   | Type                | Null | Key | Default | Extra          |
+---------+---------------------+------+-----+---------+----------------+
| id      | tinyint(3) unsigned |      | PRI | NULL    | auto_increment |
| catalog | varchar(255)        |      |     |         |                |
+---------+---------------------+------+-----+---------+----------------+ So I created a links.ini file that looks like this: [catalogs] id = products:catalog_id [products] catalog_id = catalogs:id I'm not sure if I should link both of the tables to each other but I tried just one or the other and had the same results. Anyway when I try to do some linking: $product->get(1); $product->getLinks(); I get no links. I turned on debugging and here are the highlights: dataobjects_products: databaseStructure: Missing ini file: /htdocs/test.lan/maval_catalog_admin/includes/DataObjects/maval_catalog_new.ini dataobjects_products: dataobjects_products: databaseStructure: Missing links.ini file: /htdocs/test.lan/maval_catalog_admin/includes/DataObjects/maval_catalog_new.links.ini

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