Skip to content

Commit

Permalink
Enhance docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SOHELAHMED7 committed Aug 17, 2024
1 parent b3023c4 commit 775ff26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ related objects, `x-no-relation` (type: boolean, default: false) is used.
$ref: "#/components/schemas/Comment"
```

This will not generate 'comments' column in database migrations. But it will generate `getComments()` relation in model.
This will not generate 'comments' column in database migrations. But it will generate `getComments()` relation in Yii model file.

In order to make it real database column, extension `x-no-relation` can be used.

Expand All @@ -348,7 +348,7 @@ Now if the Comment schema from the above example is
type: string
```

then the value can be
then the value for `comments` can be

```json
[
Expand All @@ -363,7 +363,7 @@ then the value can be
]
```

At this moment, `x-no-relation` can be only used with OpenAPI schema data type `array`.
`x-no-relation` can be only used with OpenAPI schema data type `array`.

## Many-to-Many relation definition

Expand Down

0 comments on commit 775ff26

Please sign in to comment.