[rt-users] Does DBIx::SearchBuilder support nested objects?

Joshua Colson jcolson at voidgate.org
Tue Aug 1 17:20:42 EDT 2006


I apologize if this is the wrong list for SearchBuilder questions. If so
and you know where this should go to, please point me in the right
direction.

Suppose I have a DB schema like the following:

#######################################################

Table: [car]
[id] [year] [make]    [model] [trim] [wheel_type]
[1]  [2006] [Zastava] [Yugo]  [55]   [1]


Table: [wheels]
[id] [year] [make]  [size]
[1]  [2006] [cheap] [14"]

#######################################################

Where [wheel_type] in the [car] table is just a foreign key to the [id]
column of the [wheels] table. Does SB automatically generate the nested
wheel_type object as a property of the car object, or does that
generation happen manually?

Thanks.

-- 
Joshua Colson <jcolson at voidgate.org>




More information about the rt-users mailing list