Skip to content

Resolves an issue with saving related data

Sam Sehnert requested to merge patch-store-related into master

When relationships are defined on models with camel case, the request input gets converted to snake case, so $data contains the related data in snake case key.

This converts the snake case key so that we can find the data to save, avoiding an undefined index error.

Merge request reports