Skip to content

Commit 53416d2

Browse files
committed
WIP
1 parent d549831 commit 53416d2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/lib/AttributeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function resolve(): DbModel
117117
//For valid primary keys for junction tables
118118
'junctionCols' => $this->isJunctionSchema ? $this->junctions->junctionCols($this->schemaName) : [],
119119
'isNotDb' => $this->componentSchema->isNonDb(),
120-
'descriptionIsComment' => $this->componentSchema->{CustomSpecAttr::DESC_IS_COMMENT},
120+
'descriptionIsComment' => !empty(($this->componentSchema->{CustomSpecAttr::DESC_IS_COMMENT})) ? $this->componentSchema->{CustomSpecAttr::DESC_IS_COMMENT} : false,
121121
],
122122
]);
123123
}

src/lib/migrations/BaseMigrationBuilder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,8 @@ public function tmpSaveNewCol(string $tableAlias, \cebe\yii2openapi\db\ColumnSch
507507
public function newColStr(string $tableAlias, \cebe\yii2openapi\db\ColumnSchema $columnSchema): string
508508
{
509509
$ctc = new ColumnToCode(\Yii::$app->db->schema, $tableAlias, $columnSchema, false, false, true);
510-
return ColumnToCode::undoEscapeQuotes($ctc->getCode());
510+
// return ColumnToCode::undoEscapeQuotes($ctc->getCode());
511+
return $ctc->getCode();
511512
}
512513

513514
public static function isEnum(\yii\db\ColumnSchema $columnSchema): bool

0 commit comments

Comments
 (0)