Resolves an issue with saving related data
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.