I'm developing application with Symfony2. Symfony2 is using Doctrine 2 for DBAL and ORM. As far as I know Doctrine2 doesn't have suport for BLOB data type. However I want to implement BLOB support through the custom data type mapping:
http://www.doctrine-project.org/docs/dbal/2.0/en/reference/types.html
However I'm struggling to understand where should this part go.
<?php
Type::addType('money', 'My\Project\Types\MoneyType');
$conn->getDatabasePlatform()->registerDoctrineTypeMapping('MyMoney', 'money');
Is anybody was going through it?
The reason I need a BLOB type is that I want to import mapping from existing MySQL database.