Skip to content

Instantly share code, notes, and snippets.

@carloscarucce
Created December 2, 2015 10:56
Show Gist options
  • Save carloscarucce/b3b6d9a26c826fa0733e to your computer and use it in GitHub Desktop.
Save carloscarucce/b3b6d9a26c826fa0733e to your computer and use it in GitHub Desktop.
This makes pdo object returns a custom class object statement
$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