Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Support for PDO's FETCH_OBJ and FETCH_CLASS? #46

Open
endel opened this issue Jan 8, 2015 · 0 comments
Open

Support for PDO's FETCH_OBJ and FETCH_CLASS? #46

endel opened this issue Jan 8, 2015 · 0 comments

Comments

@endel
Copy link
Contributor

endel commented Jan 8, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant