From 90bbb356557728d63356767b96c17aac8cbcf74e Mon Sep 17 00:00:00 2001 From: Oleksandr Kovalov Date: Thu, 11 Oct 2012 15:57:51 +0000 Subject: [PATCH] Fixed bug with comment option not being added to column. --- lib/Doctrine/ORM/Tools/SchemaTool.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Doctrine/ORM/Tools/SchemaTool.php b/lib/Doctrine/ORM/Tools/SchemaTool.php index 23a361e97..226173ca6 100644 --- a/lib/Doctrine/ORM/Tools/SchemaTool.php +++ b/lib/Doctrine/ORM/Tools/SchemaTool.php @@ -385,6 +385,12 @@ class SchemaTool } if (isset($mapping['options'])) { + if (isset($mapping['options']['comment'])) { + $options['comment'] = $mapping['options']['comment']; + + unset($mapping['options']['comment']); + } + $options['customSchemaOptions'] = $mapping['options']; }