I have added a custom type like:
namespace My\\SuperBundle\\Types;
use Doctrine\\DBAL\\Types\\Type;
use Doctrine\\DBAL\\Platforms\\AbstractPlatform;
class Mo
You are not telling the DBAL platform about your type, so obviously, the DBAL schema introspection utilities cannot recognize it. To register the type, you can do following:
use Doctrine\DBAL\Types\Type;
use My\SuperBundle\Types\Money;
class MyBSuperBundle extends Bundle
{
public function boot()
{
/* @var $em \Doctrine\ORM\EntityManager */
$entityManager = $this->container->get('doctrine.orm.entity_manager');
if( ! Type::hasType(Money::MONEY)) {
Type::addType(Money::MONEY, 'My\SuperBundle\Types\Money');
$entityManager
->getConnection()
->getDatabasePlatform()
->registerDoctrineTypeMapping('decimal', Money::MONEY);
}
}
}
This should stop the DBAL from complaining about schema differences.