DB_DataObject: how do I query composite primary keys?
| From: | PJ Taylor | Date: | Fri, 28 Mar 2003 15:09:42 +0000 |
| Subject: | DB_DataObject: how do I query composite primary keys? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-4501@lists.php.net to get a copy of this message | ||
Hello,
Does anyone know if it's possible to use DB_DataObjects if your database structure has composite primary keys?
Eg I have a table CONTACT
contactID
userID
contactName
contactDetails
contactID and userID form a composite primary key
How do I reflect this when I'm setting up the tables?
Also, how do I then query it?
Any help much appreciated
PJ
_________________________________________________________________