Re: Composite keys in Update (Data_Object)

From: Date: Thu, 18 Nov 2004 18:07:15 +0000
Subject: Re: Composite keys in Update (Data_Object)
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15646@lists.php.net to get a copy of this message
On Thu, 18 Nov 2004 11:51:01 -0200, Jacques <iacques@yahoo.com.br> wrote: > Hi people! > > I have a folow table: > > id_Credential (primary Key, autoincrement...) > id_Module > id_User > id_Level > > id_Book and id_Student are a composite keys, ok? > > How update this, if i have only the id_Book value and id_Student value? > The get method don´t find two keys... > > Thanks for any help!!! > > Jacques, from Brazil. > AFAIK, there is no multiple column key support in DB_DataObject. I would suggest adding a single column primary key. I always do this in my apps for consistency and ease of use. -- Justin Patrin

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