Angular transform functions to convert from CakePHP's serialisation format to a nested-submodel format useful for Angular resources.