note 106110 deleted from pdostatement.setfetchmode by danbrown

From: Date: Tue, 11 Oct 2011 15:59:33 +0000
Subject: note 106110 deleted from pdostatement.setfetchmode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-183790@lists.php.net to get a copy of this message
Note Submitter: kernins at gmail dot com ---- ronhenry at netspeed dot com dot au, PDO maps ctargs array to constructor params as is. It wont substitute it with actual row data. At least for me on php 5.3.6 fbsd and 5.3.7.dev win. In your example class constructor didn't recieve values of id, a and b fields of current row, but just strings 'id', 'a' and 'b'. And then, if FETCH_PROPS_LATE was used, class props overloaded with actual row data. And I suppose its meant to behave exactly as it does. But, of course, it would be nice to have an option implementing behaviour you've described... Hope this save a bit of time for someone.

« previous php.notes (#183790) next »