mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
Fix typo in README
This commit is contained in:
parent
6d0507233b
commit
84d7eb99e0
@ -1114,7 +1114,7 @@ export class Photo {
|
||||
记得把`Album`实体加到ConnectionOptions中:
|
||||
|
||||
```typescript
|
||||
const options: CreateConnectionOptions = {
|
||||
const options: ConnectionOptions = {
|
||||
// ... 其他配置
|
||||
entities: [Photo, PhotoMetadata, Author, Album]
|
||||
};
|
||||
|
||||
@ -1159,7 +1159,7 @@ After you run the application, the ORM will create a **album_photos_photo_albums
|
||||
Don't forget to register the `Album` class with your connection in the ORM:
|
||||
|
||||
```typescript
|
||||
const options: CreateConnectionOptions = {
|
||||
const options: ConnectionOptions = {
|
||||
// ... other options
|
||||
entities: [Photo, PhotoMetadata, Author, Album]
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user