RE: [PEAR][DB][DataObject] links.ini
| From: | Andy Crain | Date: | Thu, 11 Sep 2003 20:08:45 +0000 |
| Subject: | RE: [PEAR][DB][DataObject] links.ini | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7744@lists.php.net to get a copy of this message | ||
I believe what you have is fine, and you report that it does work.
Basically, the structure is:
[table]
foreign_key = other_table:key
Maybe the wording isn't that clear.
Andy
> -----Original Message-----
> From: Matthias H. Risse [mailto:usenet@risse.org]
> Sent: Thursday, September 11, 2003 3:56 PM
> To: pear-general@lists.php.net
> Subject: [PEAR][DB][DataObject] links.ini
>
> Dear people:
>
> Alexey Borzov suggested me looking to DB_DataObject FormBuilder. While
> setting up DataObjects and fumbling with foreign key relations there
rised
> a
> question reg the mydbname.links.ini-file:
>
>
> http://pear.php.net/manual/en/package.database.db-dataobject.db-
> dataobject.getlinks.php
>
> they say that the syntax of the links.ini-file should be something
like
> this:
>
> [person]
> person_id = convention:person_id
>
> I just dont really understand this. I would think that I would need to
set
> up something like this:
>
> [person]
> convention_id = convention:id
>
> ,because I want to 'say' that in table "person", the field
convention_id
> is
> linked to the (primary key) field id in table convention... am i blind
or
> is
> there something wrong in the manpages? Manually invoking a join via
> getLink() works perfectly tho. Unfortunately a try like the example
below
> doesnt work for me, as well. I read that naming conventions are
deprecated
> -
> maybe thats the source of my or the manuals confusion?
>
> Thank you,
> Matthias
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php