Re: bug line 2838 formbuilder.php
| From: | Justin Patrin | Date: | Fri, 02 Mar 2007 21:36:11 +0000 |
| Subject: | Re: bug line 2838 formbuilder.php | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26709@lists.php.net to get a copy of this message | ||
On 3/2/07, marco s <marco.sottana@q-web.it> wrote:
----- Original Message ----- From: "Justin Patrin" <papercrane@gmail.com> To: "Marco Sottana" <marco.sottana@q-web.it> Cc: <pear-general@lists.php.net> Sent: Friday, March 02, 2007 4:28 PM Subject: Re: [PEAR] bug line 2838 formbuilder.php On 3/2/07, Marco Sottana <marco.sottana@q-web.it> wrote:Why is pk an object? pk should not be an object. It should be a string that gives the name of the field which is the primary key.[code] //file new.php function nuovoX($head,$pk_name=null,$pk_value=null){This code is not readable and is too much to sort through easily. Please just explain what you are doing to cause this to happen. Line 2838 of FormBuilder.php is: if (!isset($this->_do->$pk) || !strlen($this->_do->$pk)) { Are you setting the $pk property of your DO with an object? $pk property is ok is created with createTables and i use it as object generated
-- Justin Patrin -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.5/706 - Release Date: 28/02/2007 16.09-- Justin Patrin