sonata-project/sonata-doctrine-extensions — pull request #2 by ubick (2012-09-28 12:01:28+00:00)
Title: Update src/Sonata/Doctrine/Types/JsonType.php

The requiresSQLCommentHint function is required by the doctrine:schema / doctrine:migrations SQL generators to create the correct SQL comments in regards to this custom type.

The following SQL comment is required for each json field:

COMMENT '(DC2Type:json)'

Without this function, the json fields will be saved as normal plaintext and the comparator will always try to update them.

Referenced issue:
https://github.com/sonata-project/SonataUserBundle/issues/148