Created
December 2, 2015 10:56
-
-
Save carloscarucce/b3b6d9a26c826fa0733e to your computer and use it in GitHub Desktop.
This makes pdo object returns a custom class object statement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$pdo->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('MyProject\PDOStatement', array())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment