lol - see?  there's a prime example of what I'm talking about :)

On Dec 15, 2:37 pm, "Charlie Griefer" <[email protected]>
wrote:
> he really is everywhere.  this morning i couldn't find my socks.  i looked
> under the couch and not only did i find my socks... but hey, there's matt!
>
> On Mon, Dec 15, 2008 at 11:06 AM, Brian FitzGerald <
>
>
>
> [email protected]> wrote:
>
> > Matt, dude, you're everywhere!  Thanks a lot for pointing me in the
> > right direction.  I was looking at the wrong object (question) the
> > whole time... shows you how bassackwards I tend to do things ;)
>
> > On Dec 15, 12:00 pm, "Matt Osbun" <[email protected]> wrote:
> > > If you have a Question->Answer relationship as a OneToMany, look for an
> > > AddParentQuestion method in the Answer object.
>
> > > On Mon, Dec 15, 2008 at 11:25 AM, Brian FitzGerald <
>
> > > [email protected]> wrote:
>
> > > > 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
>
> --
> I have failed as much as I have succeeded. But I love my life. I love my
> wife. And I wish you my kind of success.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to