Update documentation to remove references to self-initialised arrays

This commit is contained in:
guscastro 2017-07-12 20:42:09 +10:00
parent 28bce80a59
commit 45d00825a2
2 changed files with 4 additions and 4 deletions

View File

@ -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[];
}
```

View File

@ -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[];
}
```