From 2ab975b786c36d96424cd32adc9db752390cbaf2 Mon Sep 17 00:00:00 2001 From: Sohel Ahmed Mesaniya Date: Wed, 28 Aug 2024 20:12:38 +0530 Subject: [PATCH] Fix https://github.com/php-openapi/yii2-openapi/issues/33 --- src/lib/items/Attribute.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/items/Attribute.php b/src/lib/items/Attribute.php index 5563162d..99241501 100644 --- a/src/lib/items/Attribute.php +++ b/src/lib/items/Attribute.php @@ -321,7 +321,6 @@ public function toColumnSchema():ColumnSchema if ($this->defaultValue !== null) { $column->defaultValue = $this->defaultValue; } elseif ($column->allowNull) { - //@TODO: Need to discuss $column->defaultValue = null; } if (is_array($this->enumValues)) {