Re: 3 questions of FormBuilder

From: Date: Tue, 29 Mar 2005 17:07:44 +0000
Subject: Re: 3 questions of FormBuilder
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18395@lists.php.net to get a copy of this message
On Tue, 29 Mar 2005 10:42:51 +0800 (CST), digit Shine <digit_shine@yahoo.com.cn> wrote: > 1 Does processForm() insert/update the crossLinks DO? Of course. > 2 My crossLink DO has a two fields primary key, shall > it be detected. In my case, error message shows: > FormBuilder: Primary key not detected - storing data > not possible. I understand this question as a crossLink table's Primary Key could easily be the combination of the two foreign keys. However, since DB_DO doesn't wupport multi-field keys and FormBuilder also hasn't been build with this in mind we still require a single-column primary key. I would suggest, as always before, an auto incremented id primary key with an additional unique constraint on the two foriegn keys. > 3 If the answer of the 1st question is NO, how can I > identify to insert or update in postProcessForm()? > > Thx > > bitShine > > _________________________________________________________ > Do You Yahoo!? > 150万曲MP3疯狂搜,带您闯入音乐殿堂 > http://music.yisou.com/ > 美女明星应有尽有,搜遍美图、艳图和酷图 > http://image.yisou.com > 1G就是1000兆,雅虎电邮自助扩容! > > http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/ > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Justin Patrin

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