On Thu, 28 Jun 2007, myshare wrote:

hi,

How can I represent the following thing in DBIx::Class :

table rel
------------------
pk_id, table_ref, other_table_id

and then I can have other tables like this :

table_blah, table_another_one, table_foo, table_bar

where table_ref is an integer that tells which table I'm relating to i.e. if

%table_ref = {
1 => table_blah,
2  => table_another_one,
3  => table_foo,
4  => table_bar
}



See the Admin/User example in the Cookbook.

Jess


_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to