Re: DataObject setFrom with array values

From: Date: Thu, 27 Jan 2005 00:46:41 +0000
Subject: Re: DataObject setFrom with array values
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17195@lists.php.net to get a copy of this message
This should probably be a warning telling you to override setFrom or clean your data before sending it to setFrom. AFAIR, in pecl/DBDO, it does a trigger_Error(.....,E_USER_WARNING) when you try to assign an array to a column. which is probably the way it should be done in dataobjects Regarsd Alan electroteque wrote:
Here was my mod which is in the MDB2_DataObject //fix for form dates with arrays ??
            if (is_array($from[sprintf($format,$k)]) && $items[$k] !== MDB2_DATAOBJECT_DATE) {
                continue;
            }


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