Skip to content

Commit

Permalink
fix readme modelClass
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelvilche committed Sep 26, 2019
1 parent a4b3c0e commit 2efc34a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class MyApiSaveData extends ApiSaveData {
static get relationshipsParameters() {
return {
children: {
ModelClass: MyRelatedModel,
modelClass: MyRelatedModel,
mainIdentifierField: 'dbFieldForMainEntity',
secondaryIdentifierField: 'dbFieldForRelatedEntity',
shouldClean: false
Expand Down Expand Up @@ -73,7 +73,7 @@ If you don't have any relationship, there's no need to implement it.

This getter must return an object mapping the name of the field that contains the relationship (must be a key in the struct's `relationships` property) to the parameters of that relationship.
The parameters contain the following properties:
- ModelClass: The class of the model that should save this relationship
- modelClass: The class of the model that should save this relationship
- mainIdentifierField: The field name where the main ID should be saved
- secondaryIdentifierField: The field name where the related ID should be saved
- shouldClean: Indicates if previuos relationships should be removed. Optional, defaults to `false`
Expand Down

0 comments on commit 2efc34a

Please sign in to comment.