Greetings all, First of all, I think Transfer is incredible, and I am so glad I finally decided to give it a go! That said, I'm having a minor issue that I wanted to see if anyone could help with.
In my transfer.xml file, I have defined several manytomany relationships which, in the generated Transfer objects, expose a certain set of methods for working with my nested array of objects. One of these methods is add'ObjectName', to add a new object to the array. This is great! The problem comes in when I have defined a onetomany relationship. The onetomany is for questions and answers, as each question can have many answers, but each answer can only have one question. This is working fine and loading my answers as expected, but where I am confused is that the generated Transfer object does not expose any method called addAnswer, which would allow me to append an additional answer to the array. It does however, offer many other methods to work with answers (sortAnswers,emptyAnswers,getAnswersArray,findAnswers,containsAnswers, etc.) Why is the addAnswer method not available on Transfer objects representing a relationship created with a onetomany? I initially figured it was no biggie anyway and just created an addAnswer method in my answer decorator to append an answer to the answer array by doing something like ... arrayAppend(getAnswersArray(), arguments.answer) but for some reason that hasn't worked. Any ideas? Thanks in advance for any insight :) Brian --~--~---------~--~----~------------~-------~--~----~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups "transfer-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~----------~----~----~----~------~----~------~--~---
