How add BLOB type in Doctrine 2 using Symfony 2
In Symfony 2 I generate a Bundle for storing any type of document into database, but I need the BLOB column type. Tnx to this question I add the class BlobType into Doctrine DBAL, but for use the new column type I had to change Doctrine\DBAL\Types\Type [...] const BLOB = 'blob'; [...] private static $_typesMap = array( [...], self::BLOB => 'Doctrine\DBAL\Types\BlobType', ); Doctrine\DBAL\Platforms\MySqlPlatform (maybe it was better if I had changed Doctrine\DBAL\Platforms\AbstractPlatform) [...] protected function initializeDoctrineTypeMappings() { $this->doctrineTypeMapping = array( [...],