This pull request fixes an issue where a "Recursion detected" error would occur when using the Database Driver & when expecting a JSON response from the server.
This PR fixes it by shallowly augmenting nested fields, like the customer field. Otherwise, Statamic would go round in circles looking at an order, its customer, its customer's orders, the customer of all the customer's orders, etc.
This pull request fixes an issue where a "Recursion detected" error would occur when using the Database Driver & when expecting a JSON response from the server.
This PR fixes it by shallowly augmenting nested fields, like the customer field. Otherwise, Statamic would go round in circles looking at an order, its customer, its customer's orders, the customer of all the customer's orders, etc.
Fixes #1024.