sorry for double post

[prev] [thread] [next] [Date index for 2004/06/24]

From: step2
Subject: sorry for double post
Date: 02:07 on 24 Jun 2004

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

Re: sorry for double post
William McKee 14:00 on 24 Jun 2004

Re: sorry for double post
Perrin Harkins 14:16 on 24 Jun 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52