Phalanger
Phalanger copied to clipboard
Support for PDO's FETCH_OBJ and FETCH_CLASS?
There is a plan to support more PDO's fetch methods?
I've seen here that the only supported fetch methods by Phalanger are PDO_FETCH_ASSOC
, PDO_FETCH_NUM
and PDO_FETCH_BOTH
.
PHP Documentation: http://php.net/manual/pt_BR/pdostatement.fetch.php
It would be great to have support to these too:
PDO::FETCH_CLASS: returns a new instance of the requested class, mapping the columns of the result set to named properties in the class. If fetch_style includes PDO::FETCH_CLASSTYPE PDO::FETCH_OBJ: returns an anonymous object with property names that correspond to the column names returned in your result set