note 101079 deleted from pdo.constants by thiago
| From: | thiago@php.net | Date: | Fri, 26 Nov 2010 12:38:39 +0000 |
| Subject: | note 101079 deleted from pdo.constants by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174381@lists.php.net to get a copy of this message | ||
Note Submitter: public at grik dot net
----
PDO::FETCH_PROPS_LATE can be used when fetching an object
it means that the object fields will be populated with the data _after_ the constructor call.
The default behaviour is constructor is called after the fields are populated.
$a->setFetchMode(PDO::FETCH_CLASS|PDO::FETCH_PROPS_LATE, 'ClassName');