RE: [PEAR] DataObject setFrom with array values
| From: | Julie Knoll | Date: | Thu, 27 Jan 2005 05:08:10 +0000 |
| Subject: | RE: [PEAR] DataObject setFrom with array values | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17201@lists.php.net to get a copy of this message | ||
Thanks everyone. I'm not trying to store an array into a database column.
My setDate function will format the date into the proper string format. I
only have problems with the date element, but I was just thinking that there
might be other cases where people would need to pass an array to a set
function.
Thanks for filing the bug.
Julie
-----Original Message-----
From: Justin Patrin [mailto:papercrane@gmail.com]
Sent: Wednesday, January 26, 2005 7:25 PM
To: Alan Knowles
Cc: Julie Knoll; pear-general@lists.php.net
Subject: Re: [PEAR] DataObject setFrom with array values
On Thu, 27 Jan 2005 09:16:49 +0800, Alan Knowles <alan@akbkhome.com> wrote:
> This Looks like a bug to me.. can you file it.
Done. Bug #3307
http://pear.php.net/bugs/bug.php?id=3307
> >
> > Interesting....Alan, why is it this way? If you use a set method any
> > type should be valid. I would suggest moving the if !isset, is_object,
> > and is_array calls below the use of the set methods.
> >
--
Justin Patrin