Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
SOHELAHMED7 committed Nov 19, 2024
1 parent d549831 commit 53416d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/AttributeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function resolve(): DbModel
//For valid primary keys for junction tables
'junctionCols' => $this->isJunctionSchema ? $this->junctions->junctionCols($this->schemaName) : [],
'isNotDb' => $this->componentSchema->isNonDb(),
'descriptionIsComment' => $this->componentSchema->{CustomSpecAttr::DESC_IS_COMMENT},
'descriptionIsComment' => !empty(($this->componentSchema->{CustomSpecAttr::DESC_IS_COMMENT})) ? $this->componentSchema->{CustomSpecAttr::DESC_IS_COMMENT} : false,
],
]);
}
Expand Down
3 changes: 2 additions & 1 deletion src/lib/migrations/BaseMigrationBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ public function tmpSaveNewCol(string $tableAlias, \cebe\yii2openapi\db\ColumnSch
public function newColStr(string $tableAlias, \cebe\yii2openapi\db\ColumnSchema $columnSchema): string
{
$ctc = new ColumnToCode(\Yii::$app->db->schema, $tableAlias, $columnSchema, false, false, true);
return ColumnToCode::undoEscapeQuotes($ctc->getCode());
// return ColumnToCode::undoEscapeQuotes($ctc->getCode());
return $ctc->getCode();
}

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

0 comments on commit 53416d2

Please sign in to comment.