title: Doctrine custom type always altering table
body: <p>I have added a custom type like:</p>
  
  
  
  <pre><code>namespace My\SuperBundle\Types;
  
  use Doctrine\DBAL\Types\Type;
  use Doctrine\DBAL\Platforms\AbstractPlatform;
  
  class Money extends Type
  {
      const MONEY = 'money';
  
      public function getSqlDeclaration(
          array $fieldDeclaration,
          AbstractPlatform $platform
      ) {
          return 'DECIMAL(10,2)';
      }
  
      public function getName()
      {
          return self::MONEY;
      }
  }
  </code></pre>
  
  <p>And in my application boot:</p>
  
  
  
  <pre><code>namespace My\SuperBundle;
  
  use Doctrine\DBAL\Types\Type;
  use My\SuperBundle\Types\Money;
  
  class MyBSuperBundle extends Bundle
  {
      public function boot()
      {
          //add custom quantity and wight types
          $em = $this-&gt;container-&gt;get('doctrine.orm.entity_manager');
  
          if(!Type::hasType(Money::MONEY)) {
              Type::addType(Money::MONEY, 'My\SuperBundle\Types\Money');
          }
      }
  }
  </code></pre>
  
  <p>However <strong>every time</strong> I update the database with:</p>
  
  
  
  <pre><code>php app/console doctrine:schema:update --dump-sql
  </code></pre>
  
  <p>I keep getting the following:</p>
  
  
  
  <pre><code>ALTER TABLE product_price CHANGE price price DECIMAL(10,2) DEFAULT NULL
  </code></pre>
  
  <p>Apart from that everything works super fine. The fields in the DB are correct.
  Is there a reason why doctrine keeps updating with the same data?</p>