24 Apr
2001
24 Apr
'01
3:26 p.m.
How do you bind a SQL Result with multiple records with multiple instances of the class? Can you do this in Skinscript? Or do you mean I should return the sql result directly? Roché
Why don't you just have the rack's getChildrenFor() method return instances of the correct class, with all the data filled in from the SQL method? There should be no need to re-retrieve the same items with getItem(). Note, by the way, that this does not violate encapsulation, since the specialist and racks are specifically the place to put implementation-specific versions of multi-object methods like this.
(Btw, if anybody's compiling a ZPatterns FAQ, this should probably get in there.)