Re: Data Object get() doubt

From: Date: Sat, 12 Feb 2005 08:58:13 +0000
Subject: Re: Data Object get() doubt
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17504@lists.php.net to get a copy of this message
On Sat, 12 Feb 2005 18:36:20 +1100, dan rossi <daniel@electroteque.org> wrote: > > On 12/02/2005, at 12:15 PM, Justin Patrin wrote: > >> > >> > > > > Not only get() but many other things won't work. DB_DataObject doe > > snot currently support primary keys of more than one field. I would > > suggest you create an auto incrementing id field for the primary key, > > then add a unique constraint on the other two fields. This way you > > have your uniqueness *and* a simple primary key. > > > > > > How bout transactions and foreign keys ? > Well, I think you can do transactions via the query method (i.e. no internal transaction support, but what would it need it for?). Of course it supports foreign keys, that's what the whole link system is about. However, the same rule applies here as to keys. Foreign keys can only be *one field* linking to *one other field*. -- Justin Patrin

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