- or download this
package Hotels;
...
__PACKAGE__->has_a(hotel_id => Hotels);
__PACKAGE__->has_a(category_id => Categories);
- or download this
$mycat = Categories->retrieve(3);
for ( $mycat->hotels(city => 'Timbucktoo') ) {
# do something with hotels in Timbucktoo of category 3
}
- or download this
Limiting
...
pairs for restricting the search. The above
example will only return the CDs with a year
of 1980.