[Seaside] generating relationships

Sebastian Sastre ssastre at seaswork.com
Thu May 14 14:25:55 UTC 2009


> so, in albums, i would have something like artistID?
> 
nothing will stop you but is unfriendly given you can make the album to hold the
artist object itself. 

> is there something like the rails 'find' function build in? 
> so i could  
> do something like..
> 
> Album.find(albumID).artist
> 
to a certain point, yes. You have to query the collection, ala smalltalk in this
case. For instance:

u2Albums := store albums select:[:album| album artist name = 'U2']

I'm asuming that store hols a collection of albums and album holds an artist
which answers a name

cheers
sebastian


> thanks!
> 
> 
> >
> 
> ___________
> sergio t. ruiz
> network analyst
> red red design
> 419.281.8483
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list