Skip to content

Instantly share code, notes, and snippets.

@doctrinebot
Created December 13, 2015 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doctrinebot/b7c30f5f19e61f9c39a5 to your computer and use it in GitHub Desktop.
Save doctrinebot/b7c30f5f19e61f9c39a5 to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DBAL-194 - https://github.com/doctrine/dbal/issues/1365
diff --git a/lib/Doctrine/DBAL/Types/BlobType.php b/lib/Doctrine/DBAL/Types/BlobType.php
index 4af57ae..6e2825f 100644
--- a/lib/Doctrine/DBAL/Types/BlobType.php
+++ b/lib/Doctrine/DBAL/Types/BlobType.php
@@ -56,4 +56,9 @@ class BlobType extends Type
{
return Type::BLOB;
}
-}
\ No newline at end of file
+
+ public function getBindingType()
+ {
+ return \PDO::PARAM_LOB;
+ }
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment