> Thanks Mike,
>
> So, I want my velogen templates to generate something like this:
>
> public NSArray fetchSomeObjectsFetchSpec(EOEditingContext ec,
> BindingOneClass bindingOne, BindingTwoClass bindingTwo) {
> ...
> }
>
> I get the 'bindingOne' from the EOQualifierBindings 'name', how do I
> get the 'BindingOneClass'?
>
> Do i need to check the attributePath and ask for a different key
> path based on the result to get at the destinations class or is
> there an easier way I'm not seeing?
I was going to give a long explanation of how you can do it, but it
was easier to just add some easier API ... attributePath now has a
"childClassName" method on it, so you can call $
{binding.attributePath.childClassName} and it will do the right thing
for attributes or relationships (EXCEPT if you use ERXConstants as
binding values, but I don't think this will be a problem).
ms
This archive was generated by hypermail 2.0.0 : Tue Jan 22 2008 - 18:31:55 EST