From 8bb74e02972ce342bc430eec1efd2e9d53402c25 Mon Sep 17 00:00:00 2001 From: Jesper Pedersen Date: Thu, 4 Jul 2013 14:09:23 +0200 Subject: [PATCH] added requiresSQLCommentHint true To make Doctrine schema tool able distinguish between this type and string such that it does not try to update the field every time update schema is run. --- src/Rhumsaa/Uuid/Doctrine/UuidType.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Rhumsaa/Uuid/Doctrine/UuidType.php b/src/Rhumsaa/Uuid/Doctrine/UuidType.php index f8b9e1b..d31625b 100644 --- a/src/Rhumsaa/Uuid/Doctrine/UuidType.php +++ b/src/Rhumsaa/Uuid/Doctrine/UuidType.php @@ -90,4 +90,14 @@ class UuidType extends Type { return self::NAME; } + + /** + * {@inheritdoc} + * + * @return boolean + */ + public function requiresSQLCommentHint(AbstractPlatform $platform) + { + return true; + } }