DEVSENSE / Phalanger

PHP 5.4 compiler for .NET/Mono frameworks. Predecessor to the opensource PeachPie project (www.peachpie.io).
http://v4.php-compiler.net/
Apache License 2.0
381 stars 92 forks source link

Support for PDO's FETCH_OBJ and FETCH_CLASS? #46

Open endel opened 9 years ago

endel commented 9 years ago

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