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
}

So how you will represent this in dbix-class ? I preffer the ref-table
that do the translation to
be a hash (like I shown here), instead of a table in the database ...
as you may suspect there wouldn't be thousand such tables.

_______________________________________________
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