Skip to content

Commit

Permalink
pay attention to use updateRepeaterMorphMany for dealing with polymor…
Browse files Browse the repository at this point in the history
…phic relationships
  • Loading branch information
YasienDwieb committed Nov 5, 2022
1 parent dc4a87b commit 8910047
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/form-fields/repeater.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class TeamMember extends Model
```

- Update `TeamRepository`. Override the `afterSave` and `getFormFields` methods to process the repeater field:
- Note: For Polymorphic relationships, use `updateRepeaterMorphMany` in place of `updateRepeater`

```php
class TeamRepository extends ModuleRepository
Expand Down

0 comments on commit 8910047

Please sign in to comment.