Skip to content

Instantly share code, notes, and snippets.

@mdurys
Last active June 24, 2021 12:48
Show Gist options
  • Select an option

  • Save mdurys/b5912c634a5af3848408 to your computer and use it in GitHub Desktop.

Select an option

Save mdurys/b5912c634a5af3848408 to your computer and use it in GitHub Desktop.
Doctrine2: setting PDO attribute on runtime
$em
->getConnection()
->getWrappedConnection()
->setAttribute(\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment