Re: [PHP] class object vs array for db table model

2010-10-12 Thread chris h
hehe that's pretty funny; also funny oversight of mine in regards to isset()... so I guess we're both comedians today? ;-) Glad you got that worked out Tommy! Chris. On Tue, Oct 12, 2010 at 8:46 AM, Tommy Pham wrote: > On Tue, Oct 12, 2010 at 4:45 AM, chris h wrote: > > > > > > > > > > > W

Re: [PHP] class object vs array for db table model

2010-10-12 Thread Tommy Pham
On Tue, Oct 12, 2010 at 4:45 AM, chris h wrote: > > > > When you are adding a row as an object you are calling 4 user > functions: MyTable::__construct(), MyTable::setId(), MyTable::setName(), and > MyTable::setDescription().  This adds some overhead for sure, so you might > want to think about

Re: [PHP] class object vs array for db table model

2010-10-12 Thread chris h
On Tue, Oct 12, 2010 at 2:38 AM, Tommy Pham wrote: > Hi everyone, > > It's been a couple years since I've did a project in PHP. The current > project I'm working on is for PHP 5.3 and I noticed a performance issue. > Is > it just me or is there a BIG difference in performance between class obje