Skip to content

Loading…

Fixed bug with comment option not being added to column. #474

Merged
merged 1 commit into from

3 participants

@okovalov

Title explains everything... =)

@doctrinebot

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DDC-2068

@guilhermeblanco guilhermeblanco merged commit a4b85c4 into doctrine:master

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Doctrine/ORM/Tools/SchemaTool.php
View
6 lib/Doctrine/ORM/Tools/SchemaTool.php
@@ -385,6 +385,12 @@ private function _gatherColumn($class, array $mapping, $table)
}
if (isset($mapping['options'])) {
+ if (isset($mapping['options']['comment'])) {
+ $options['comment'] = $mapping['options']['comment'];
+
+ unset($mapping['options']['comment']);
+ }
+
$options['customSchemaOptions'] = $mapping['options'];
}
Something went wrong with that request. Please try again.