sorry for double post
[prev]
[thread]
[next]
[Date index for 2004/06/24]
yikes, sorry to double post, i'm just a little excited over here.
anyway, is this considered bad form?
in Artist, i've added this:
__PACKAGE__->set_sql(aliases => qq {
select artistid, name
from artistalias, artist
where artistalias.artistid1 = ?
and artistalias.artistid2 = artist.artistid});
this does what i want, in the sense that i can do Artist->search_aliases(x) and
get the other names (or whatever) i want... but i was thinking of Artist as an
object that represents an artist. i was hoping to be able to do something more
like $artist = Artist->retrieve(1) and just have all the aliases automagically
available to $artist without a separate Artist->search...
comments?
steve
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
|
sorry for double post
step2 02:07 on 24 Jun 2004
|