Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.8.12

Request #5997 getlinks on multible column keys
Submitted: 2005-11-17 08:14 UTC Modified: 2006-03-07 12:13 UTC
From: nikolas dot hagelstein at googlemail dot com Assigned:
Status: Open Package: DB_DataObject
PHP Version: Irrelevant OS: Linux 2.4.30
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nikolas dot hagelstein at googlemail dot com
New email:
PHP Version: Package Version: OS:

 

 [2005-11-17 08:14 UTC] nikolas dot hagelstein at googlemail dot com
Description: ------------ AFAIK it,s not possible to use getLinks() in common with multible column links. e.g.: 3 DB-tables -------- |person| Primary key on two colums (id and f_id) -------- |id | -------- |f_id | -------- ------ |firm| ------ |id | ------ ------ |car | Car belongs to a person which belongs to a firm ------ |p_id| |----| |f_id| ------ So getlinks isn't able to fecht a cars corresponding person.

Comments

 [2006-03-07 12:13 UTC] justinpatrin
DB_DataObject does not support multiple column keys (and hnce multiple column links). Use a single primary key or link it manually. (Additionally I suggets using getLink() and not getLinks())