mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
Update documentation to remove references to self-initialised arrays
This commit is contained in:
parent
28bce80a59
commit
45d00825a2
@ -863,7 +863,7 @@ export class Album {
|
||||
cascadeRemove: true // 在移除Album时,会自动移除相册里的Photo
|
||||
})
|
||||
@JoinTable()
|
||||
photos: Photo[] = []; // 初始化个Photo数组
|
||||
photos: Photo[];
|
||||
}
|
||||
```
|
||||
|
||||
@ -880,7 +880,7 @@ export class Photo {
|
||||
cascadeUpdate: true, // 在更新Album时,会自动更新相册里的Photo
|
||||
cascadeRemove: true // 在移除Album时,会自动移除相册里的Photo
|
||||
})
|
||||
albums: Album[] = []; // 初始化个Album数组
|
||||
albums: Album[];
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@ -945,7 +945,7 @@ export class Album {
|
||||
cascadeUpdate: true // Allow to update a photo on album save
|
||||
})
|
||||
@JoinTable()
|
||||
photos: Photo[] = []; // We initialize array for convinience here
|
||||
photos: Photo[];
|
||||
}
|
||||
```
|
||||
|
||||
@ -961,7 +961,7 @@ export class Photo {
|
||||
cascadeInsert: true, // Allow to insert a new album on photo save
|
||||
cascadeUpdate: true // Allow to update an album on photo save
|
||||
})
|
||||
albums: Album[] = []; // We initialize array for convinience here
|
||||
albums: Album[];
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user