Hi, I am using a SOAP web service as my datasource. The data that the model fetches from the web service is a complex object (nested arrays and objects). I want to map this returned data to an object that my app will use internally. There a couple of reasons for this:
1. If the names of fields in the returned data change (and they do) I just have to fix it one place. 2. I can normalize the data set It makes sense to me to do this in the model after the find/read operation has completed. However I can seem to figure out how. I have come up with the following but they seem clunky. 1. Create a bunch of Vendor classes to represent my internal data objects and include them at run time. 2. Add a method to the model where I lay out the data object class using StdClass and then fill the data. Neither of those is appealing although they would solve the problem. There must be a mechanism that cake provides for this I just cant figure which one is appropriate. Thanks for any advice. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php