I have a manytoone table setup as follows:

                        <object name="variation" table="variations">
                                <id name="varid" type="numeric" />
                                <property name="title" type="string" />
                                <property name="type" type="string" />
                        </object>

                        <object name="variationVal" table="variationVals">
                                <id name="valid" type="numeric" />
                                <property name="title" type="string" />
                                <property name="price" type="numeric" />
                                <manytoone name="varid">
                                        <link to="catalog.variation" 
column="varid" />
                                </manytoone>
                        </object>

I am trying to run the following which I wrote before I setup the
relationship:

                        // get the variation
                        var getVariation =
APPLICATION.transfer.listByProperty('catalog.variation','varid',ARGUMENTS.varid);
                        // get the variation values
                        var getValues =
APPLICATION.transfer.listByProperty('catalog.variationVal','varid',ARGUMENTS.varid);

As you more experienced Transfer ORMers will know that will error out
because I can't use the varid in the second listbyproperty anymore.
These lines are contained in a function that is passed the variation's
id so I have that and the first call is to get the information about
the variation (title), while the second is to get the values under the
variation (label and price).

What would the best way of rewriting this line be?

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

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