Skip to content

Improve Relationship record mappings

Craig Smith requested to merge improve-relationships into master

HasOne/MorphOne has been updated to use more pure laravel logic,

here we are looking at updating

  • HasMany/MorphMany
  • BelongsTo/MorphTo
  • BelongsToMany/MorphToMany

** others to add in

  • HasManyThrough
  • HasOneThrough
  • MorphMany (extends HasOneOrMany)
  • MorphOne (extends HasOneOrMany)
  • MorphPivot (do we need ?)

Completion Criteria:

  • each relationship works as expected with unit tests to confirm
Edited by Craig Smith

Merge request reports