Skip to content

Commit

Permalink
Update documentation to remove references to self-initialised arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
guscastro committed Jul 12, 2017
1 parent 28bce80 commit 45d0082
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ export class Album {
cascadeRemove: true // 在移除Album时,会自动移除相册里的Photo
})
@JoinTable()
photos: Photo[] = []; // 初始化个Photo数组
photos: Photo[];
}
```

Expand All @@ -880,7 +880,7 @@ export class Photo {
cascadeUpdate: true, // 在更新Album时,会自动更新相册里的Photo
cascadeRemove: true // 在移除Album时,会自动移除相册里的Photo
})
albums: Album[] = []; // 初始化个Album数组
albums: Album[];
}
```

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
}
```

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

Expand Down

0 comments on commit 45d0082

Please sign in to comment.