You can also add the type using config.yml file:
doctrine:
dbal:
driver: « %database_driver% »
host: « %database_host% »
port: « %database_port% »
dbname: « %database_name% »
user: « %database_user% »
password: « %database_password% »
charset: UTF8
types:
longblog: MyProject\LongBlob